mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Minor clean-ups.
This commit is contained in:
parent
785381b148
commit
278a9771ba
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ new function() {
|
|||
value = namespace
|
||||
? node.getAttributeNS(namespace, name)
|
||||
: node.getAttribute(name);
|
||||
if (value == 'null')
|
||||
if (value === 'null')
|
||||
value = null;
|
||||
// Interpret value as number. Never return NaN, but 0 instead.
|
||||
// If the value is a sequence of numbers, parseFloat will
|
||||
|
@ -95,9 +95,9 @@ new function() {
|
|||
var childNode = nodes[i],
|
||||
child;
|
||||
if (childNode.nodeType == 1 && (child = importSVG(childNode))) {
|
||||
// If adding CompoundPaths to other CompoundPaths,
|
||||
// When adding CompoundPaths to other CompoundPaths,
|
||||
// we need to "unbox" them first:
|
||||
if (clip && child instanceof CompoundPath) {
|
||||
if (child instanceof CompoundPath) {
|
||||
children.push.apply(children, child.removeChildren());
|
||||
child.remove();
|
||||
} else if (!(child instanceof Symbol)) {
|
||||
|
|
Loading…
Reference in a new issue