From 278a9771ba8a4d9cdc2a9c52686570c0076034a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 18 Jun 2013 17:02:02 -0700 Subject: [PATCH] Minor clean-ups. --- src/svg/SVGImport.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/svg/SVGImport.js b/src/svg/SVGImport.js index cd343a39..d274ace1 100644 --- a/src/svg/SVGImport.js +++ b/src/svg/SVGImport.js @@ -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)) {