[Sie-announce] SIEコード [1639] NAIBU. FontStyleオブジェクトのestStyleメソッドを最適化

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 2月 5日 (金) 20:56:47 JST


Revision: 1639
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1639
Author:   dhrname
Date:     2010-02-05 20:56:47 +0900 (Fri, 05 Feb 2010)

Log Message:
-----------
NAIBU.FontStyleオブジェクトのestStyleメソッドを最適化

Modified Paths:
--------------
    branches/06x/060/sie.js

Modified: branches/06x/060/sie.js
===================================================================
--- branches/06x/060/sie.js	2010-02-04 14:38:03 UTC (rev 1638)
+++ branches/06x/060/sie.js	2010-02-05 11:56:47 UTC (rev 1639)
@@ -1536,13 +1536,15 @@
     for (var i in this) {
       var ti = this[i];
       if ((typeof ti) === "string") { //string型以外は除く
-        var sname = i.replace(/\-([a-z])/, "-").replace(/\-/,RegExp.$1.toUpperCase());
+        var sname = i.replace(/\-([a-z])/, "-"), s =RegExp.$1.toUpperCase();
+        sname = sname.replace(/\-/, s);
         if (ti === "lr") {
           ti = "lr-tb";
         } else if (ti === "tb") {
           ti = "tb-rl";
         }
         tst.style[sname] = ti;
+        sname = s = ti = null;
       }
     }
   } catch(e) {stlog.add(e,1396); return "";}




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