Minor clean-ups.

This commit is contained in:
Jürg Lehni 2013-06-18 17:02:02 -07:00
parent 785381b148
commit 278a9771ba

View file

@ -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)) {