[Sie-announce] SIEコード [2601] createTextNodeメソッドの演算子を減らして、軽量化

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 4月 17日 (日) 22:37:31 JST


Revision: 2601
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2601
Author:   dhrname
Date:     2011-04-17 22:37:31 +0900 (Sun, 17 Apr 2011)

Log Message:
-----------
createTextNodeメソッドの演算子を減らして、軽量化

Modified Paths:
--------------
    branches/07x/076/org/w3c/core.js

Modified: branches/07x/076/org/w3c/core.js
===================================================================
--- branches/07x/076/org/w3c/core.js	2011-04-17 13:31:49 UTC (rev 2600)
+++ branches/07x/076/org/w3c/core.js	2011-04-17 13:37:31 UTC (rev 2601)
@@ -798,7 +798,7 @@
 /*Text*/               Document.prototype.createTextNode = function( /*string*/ data) {
   var s = new Text();
   s.data = s.nodeValue = data+"";
-  s.length = s.data.length;
+  s.length = data.length;
   s.ownerDocument = this;
   return s;
 };




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