Change to regular if() statement

This commit is contained in:
Michael Deal 2017-05-18 22:44:03 -07:00 committed by GitHub
parent 49f22cc7a3
commit e90927c2fd

View File

@ -488,7 +488,7 @@
var parent = this.__closestGroupOrSvg();
if (parent.childNodes.length > 0) {
if (this.__currentElement.nodeName === "path") {
this.__currentElementsToStyle || (this.__currentElementsToStyle = { element: parent, children: [] });
if (!this.__currentElementsToStyle) this.__currentElementsToStyle = {element: parent, children: []};
this.__currentElementsToStyle.children.push(this.__currentElement)
this.__applyCurrentDefaultPath();
}