From 95079da53d0f2c3508471acccee8eb71da767c4b Mon Sep 17 00:00:00 2001 From: dhrname Date: Wed, 4 Jan 2012 21:56:00 +0900 Subject: [PATCH] =?utf8?q?timing=E3=83=AD=E3=83=BC=E3=82=AB=E3=83=AB?= =?utf8?q?=E9=96=A2=E6=95=B0=E3=81=AE=E5=A4=89=E6=95=B0=E3=81=AB=E3=81=A4?= =?utf8?q?=E3=81=84=E3=81=A6=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- org/w3c/dom/svg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.11.0