[Sie-announce] SIEコード [1491] 経由させる関数を減らして、イベントアニメーションの高速化

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 12月 22日 (火) 23:09:17 JST


Revision: 1491
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1491
Author:   dhrname
Date:     2009-12-22 23:09:17 +0900 (Tue, 22 Dec 2009)

Log Message:
-----------
経由させる関数を減らして、イベントアニメーションの高速化

Modified Paths:
--------------
    branches/05x/056/sie.js

Modified: branches/05x/056/sie.js
===================================================================
--- branches/05x/056/sie.js	2009-12-22 13:50:11 UTC (rev 1490)
+++ branches/05x/056/sie.js	2009-12-22 14:09:17 UTC (rev 1491)
@@ -2267,7 +2267,15 @@
     this.eventSync(this.begin,
       (function(te, offse, ta) {
         ta.attachEvent( "on" + te.begin.match(te._eventRegExp)[0],
-            function(){te.beginElementAt(offse);}, false );
+          function(){
+            if (offse !== 0) {
+              te.beginElementAt(offse);
+            } else {
+              te._begin = NAIBU.Time.currentFrame;
+              te.beginElement();
+              te.currentFrame++;
+            }
+          }, false );
         }), "beginElementAt");
     if (this.dur) {
       this.simpleDuration = this.getOffset(this.dur);   
@@ -2418,7 +2426,15 @@
       //クロージャを参照
       (function(te, offse, ta) {
       ta.addEventListener( te.begin.match(te._eventRegExp)[0],
-          function(){te.beginElementAt(offse);}, false );
+        function(){
+          if (offse !== 0) {
+            te.beginElementAt(offse);
+          } else {
+            te._begin = NAIBU.Time.currentFrame;
+            te.beginElement();
+            te.currentFrame++;
+          }
+        }, false );
       }), "beginElementAt");
     if (this.dur) {
       this.simpleDuration = this.getOffset(this.dur);




Sie-announce メーリングリストの案内
Back to archive index