From: dhrname Date: Wed, 4 Jan 2012 12:56:00 +0000 (+0900) Subject: timingローカル関数の変数について整理 X-Git-Tag: v16beta~713 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=95079da53d0f2c3508471acccee8eb71da767c4b;p=sie%2Fsie.git timingローカル関数の変数について整理 --- diff --git a/org/w3c/dom/svg.js b/org/w3c/dom/svg.js index 1bb450b..9bd8db5 100644 --- a/org/w3c/dom/svg.js +++ b/org/w3c/dom/svg.js @@ -5316,12 +5316,13 @@ SVGAnimationElement.prototype._getOffset = function(/*string*/ t) { var ds = function (evt) { that[name](offset); }; - if (id && val.match(new RegExp(id+"\.([a-zA-Z]+)"))) { + if (id && val.match(/\.([a-z]+)/i)) { that.ownerDocument.getElementById(id).addEventListener(RegExp.$1, ds); } else if (val){ that.targetElement.addEventListener(val.match(/^[a-z]+/i)[0], ds) } } + val = searchId = id = void 0; }; timing((this._beginValue || "0ms"), "beginElementAt", _begin); if (this._endValue) {