From: dhrname Date: Wed, 4 Jan 2012 12:43:27 +0000 (+0900) Subject: begin属性などで使われるイベント処理でバグがあったので修正 X-Git-Tag: v16beta~715 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f189bd5755cb5c7393e8edba22eea6b95a7ac1e0;p=sie%2Fsie.git begin属性などで使われるイベント処理でバグがあったので修正 --- diff --git a/org/w3c/dom/svg.js b/org/w3c/dom/svg.js index ed47b7b..3dbe0aa 100644 --- a/org/w3c/dom/svg.js +++ b/org/w3c/dom/svg.js @@ -5317,8 +5317,8 @@ SVGAnimationElement.prototype._getOffset = function(/*string*/ t) { }; if (id && val.match(new RegExp(id+"\.([a-zA-Z]+)"))) { that.ownerDocument.getElementById(id).addEventListener(RegExp.$1, ds); - } else { - that.targetElement.addEventListener(val.match(/^[a-z]+/i), ds) + } else if (val){ + that.targetElement.addEventListener(val.match(/^[a-z]+/i)[0], ds) } } };