svnno****@sourc*****
svnno****@sourc*****
2011年 6月 5日 (日) 23:23:49 JST
Revision: 2744
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2744
Author: dhrname
Date: 2011-06-05 23:23:49 +0900 (Sun, 05 Jun 2011)
Log Message:
-----------
SVGAnimationElementの_eventSyncメソッドを修正して、beginとendイベントに対応させた
Modified Paths:
--------------
branches/07x/079/org/w3c/dom/svg.js
Modified: branches/07x/079/org/w3c/dom/svg.js
===================================================================
--- branches/07x/079/org/w3c/dom/svg.js 2011-06-04 14:26:34 UTC (rev 2743)
+++ branches/07x/079/org/w3c/dom/svg.js 2011-06-05 14:23:49 UTC (rev 2744)
@@ -5023,7 +5023,7 @@
var ntc = this.ownerDocument.documentElement.getCurrentTime();
this._end = offset + ntc;
};
-SVGAnimationElement.prototype._eventRegExp = /(mouse|activ|clic)[a-z]+/;
+SVGAnimationElement.prototype._eventRegExp = /(mouse|activ|clic|begi|en)[a-z]+/;
SVGAnimationElement.prototype._timeRegExp = /[\-\d\.]+(h|min|s|ms)?/;
SVGAnimationElement.prototype._unit = {
"h" : 2880000,
@@ -5031,7 +5031,8 @@
"s" : 800,
"ms" : 0.8
};
-/*どれだけズレの時間があるかを計測するメソッド
+/*_getOffsetメソッド
+ * どれだけズレの時間があるかを計測するメソッド
*tに数値が使われていないときは0を返す
*これはSMILアニメーションモジュールの以下の記述にあるように、値のデフォルトが0であることに起因する
*http://www.w3.org/TR/2001/REC-smil20-20010807/smil-timing.html#Timing-Ex:0DurDiscreteMedia
@@ -5050,10 +5051,13 @@
n = t = null;
return offset;
};
+/*_eventSyncメソッド
+ *イベントがある場合とない場合とで、別々の処理に分けるメソッド
+ */
SVGAnimationElement.prototype._eventSync = function(/*string*/ t, /*function*/ f, /*string*/ methodName) {
var offset = this._getOffset(t);
this._begin = NAIBU.Time.Max;
- if ( /(mouse|activ|click)/.test(t) ) { //イベントがある場合
+ if ( /(mouse|activ|click|begin|end)/.test(t) ) { //イベントがある場合
var tar;
if ( /([^;]+)\.\D/.test(t) ) {
tar = this.ownerDocument.getElementById(RegExp.$1);