From: dhrname Date: Mon, 6 Apr 2015 11:39:40 +0000 (+0900) Subject: Add a push method to the object X-Git-Tag: version22~236 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c2532a5036ec500e12454328530cd229717a62fb;p=sie%2Fsie.git Add a push method to the object --- diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 80862b6..b411383 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -260,7 +260,7 @@ base("$frame").mix ( { }, /*parse メソッド - * stringプロパティを解析して、フレーム数を算出し、結果を$frame::beginプロパティに出力 + * stringプロパティを解析して、フレーム数を算出し、結果を$frame.beginプロパティに出力 * また、イベントリスナーに登録をしておく*/ parse: function() { this.begin = 0; @@ -704,7 +704,30 @@ base("$calcMode").up("$attribute").mix( { */ return; } - this.frame.addLine(this.frame.$begin.$activate.up()); + /*eleの属性の値を、それぞれオブジェクトに割り当て*/ + var begin = this.frame.$begin; + begin.up().mix( { + string: getAttr("begin"), + $activate: begin.$activate.up().mix( { + dur: getAttr("dur"), + end: begin.$end.up().mix( { + string: getAttr("end") + } ), + repeatCount: getAttr("repeatCount"), + repeatDur: getAttr("repeatDur"), + min: (getAttr("min") || "0"), + max: (getAttr("max") || "indefinite") + } ) + } ).parse(); + if (begin.$1.isResolved) { + begin.$1.listener( { + timeStamp: Date.now() + } ); + } + function getAttr(name) { + return ele.getAttributeNS(null, name); + }; + getAttr = begin = ele = void 0; } } ); //#endif // _SMIL_IDL_