[Sie-announce] SIEコード [1477] 複数のset要素に対応

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 12月 17日 (木) 21:51:26 JST


Revision: 1477
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1477
Author:   dhrname
Date:     2009-12-17 21:51:26 +0900 (Thu, 17 Dec 2009)

Log Message:
-----------
複数のset要素に対応

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

Modified: branches/05x/056/sie.js
===================================================================
--- branches/05x/056/sie.js	2009-12-16 12:47:06 UTC (rev 1476)
+++ branches/05x/056/sie.js	2009-12-17 12:51:26 UTC (rev 1477)
@@ -2231,6 +2231,12 @@
   } else if (parent.nodeName === "image") {
     s = new STImage(parent, matrix, w, h);
   }
+  var ncl = NAIBU.Clip.length;
+  if (ncl !== 0) {
+    if (NAIBU.Clip[ncl-1].tar === ele) {
+      s = NAIBU.Clip[ncl-1].target;
+    }
+  }
   this.trnasformable = s.transformable;
   this.target = s;
   this.tar = ele;
@@ -2244,7 +2250,8 @@
   this.w = w;
   this.h = h;
   this._begin = this._end =  this.simpleDuration = null;
-  NAIBU.Clip[NAIBU.Clip.length] = this;
+  NAIBU.Clip[ncl] = this;
+  ncl = null;
   }
   return this;
 };




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