From: dhrname Date: Sat, 16 May 2015 14:01:12 +0000 (+0900) Subject: Support the init method of the object X-Git-Tag: version22~188 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=30b249d0c79528d1e3e48d5cd7623df888db7a3b;p=sie%2Fsie.git Support the init method of the object --- diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 2dc7ec9..99f3e38 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -835,17 +835,20 @@ base("$calcMode").up("$attribute").mix( { defaultValue: "", init: function(ele) { - this.push(ele); + var line = this.push(ele); if (ele && ele.getAttributeNS) { this.to = ele.getAttributeNS(null, "to") || ""; this.attrName = ele.getAttributeNS(null, "attributeName") || ""; } var thisele = this.element; - if (thisele) { + if (line && thisele) { this.defaultValue = thisele.getAttributeNS(null, this.attrName) || thisele.ownerDocument.defaultView.getComputedStyle(thisele, "").getPropertyValue(this.attrName); + line.setFrame = function () { + this.element.setAttributeNS(null, this.attrName, this.to); + }.bind(this); } - thisele = void 0; + line = thisele = void 0; } });