From b98c424f9ea9f57c12e3c4a529dcd73c7f07ff5e Mon Sep 17 00:00:00 2001 From: dhrname Date: Thu, 14 May 2015 22:02:44 +0900 Subject: [PATCH] Lighten the init method of the --- org/w3c/dom/smil.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index e18a42c..50d5824 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -838,10 +838,12 @@ base("$calcMode").up("$attribute").mix( { this.to = ele.getAttributeNS(null, "to") || ""; this.attrName = ele.getAttributeNS(null, "attributeName") || ""; } - if (this.element) { - this.defaultValue = this.element.getAttributeNS(null, this.attrName) - || this.element.ownerDocument.defaultView.getComputedStyle(this.element, "").getPropertyValue(this.attrName); + var thisele = this.element; + if (thisele) { + this.defaultValue = thisele.getAttributeNS(null, this.attrName) + || thisele.ownerDocument.defaultView.getComputedStyle(thisele, "").getPropertyValue(this.attrName); } + thisele = void 0; } }); -- 2.11.0