svnno****@sourc*****
svnno****@sourc*****
2011年 3月 31日 (木) 22:48:13 JST
Revision: 2541 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2541 Author: dhrname Date: 2011-03-31 22:48:13 +0900 (Thu, 31 Mar 2011) Log Message: ----------- CSS2Propertiesの初期化について、変数を整理した Modified Paths: -------------- branches/07x/074/org/w3c/dom/svg.js Modified: branches/07x/074/org/w3c/dom/svg.js =================================================================== --- branches/07x/074/org/w3c/dom/svg.js 2011-03-31 11:09:54 UTC (rev 2540) +++ branches/07x/074/org/w3c/dom/svg.js 2011-03-31 13:48:13 UTC (rev 2541) @@ -5855,27 +5855,31 @@ *CSSprimitiveValueのリストを収納している。なお、その際に、writingModeなどはwriting-modeに変更している */ (function(){ - var s = new CSSStyleDeclaration(), n = 0; + var s = new CSSStyleDeclaration(), + n = 0, + regAZ = /([A-Z])/, + regm = /\-/, + u, t; for (var i in CSS2Properties) { if(CSS2Properties.hasOwnProperty(i)) { - var t = i.replace(/([A-Z])/, "-"); + t = i.replace(regAZ, "-"); if (!!RegExp.$1) { - var u = "-" +RegExp.$1.toLowerCase(); + u = "-" +RegExp.$1.toLowerCase(); } else { - var u = "-"; + u = "-"; } - t = t.replace(/\-/, u); + t = t.replace(regm, u); s.setProperty(t, CSS2Properties[i]); s._list[t] = s._list[n]; //この処理はCSSモジュールのgetComputedStyleメソッドのため ++n; - p = m = i = t = u = null; + i = t = u = null; } } s._list._opacity = 1; s._list._fontSize = 12; CSS2Properties._list = s._list; Document.prototype.defaultView._defaultCSS = s._list; - s = null; + s = n = regAZ = regm =null; })(); NAIBU.addEvent = function(evt,lis){