[Sie-announce] SIEコード [2235] SVGStringListの最適化

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 12月 22日 (水) 21:02:20 JST


Revision: 2235
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2235
Author:   dhrname
Date:     2010-12-22 21:02:20 +0900 (Wed, 22 Dec 2010)

Log Message:
-----------
SVGStringListの最適化

Modified Paths:
--------------
    branches/06x/066/org/w3c/dom/svg.js

Modified: branches/06x/066/org/w3c/dom/svg.js
===================================================================
--- branches/06x/066/org/w3c/dom/svg.js	2010-12-21 13:33:08 UTC (rev 2234)
+++ branches/06x/066/org/w3c/dom/svg.js	2010-12-22 12:02:20 UTC (rev 2235)
@@ -443,11 +443,12 @@
       throw (new DOMException(DOMException.INDEX_SIZE_ERR));
     } else {
       this._list.splice(index, 1);
+      --this.numberOfItems;
     }
     return newItem;
   },
   /*DOMString*/ appendItem : function(/*DOMString*/ newItem ){
-    this._list[this._list.length] = newItem;
+    this._list[this.numberOfItems] = newItem;
     ++this.numberOfItems;
   }
 };




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