svnno****@sourc*****
svnno****@sourc*****
2010年 3月 27日 (土) 23:04:22 JST
Revision: 1761
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1761
Author: dhrname
Date: 2010-03-27 23:04:22 +0900 (Sat, 27 Mar 2010)
Log Message:
-----------
キャメル形式の変換について修正
Modified Paths:
--------------
branches/ufltima/dom/css.js
Modified: branches/ufltima/dom/css.js
===================================================================
--- branches/ufltima/dom/css.js 2010-03-26 15:09:53 UTC (rev 1760)
+++ branches/ufltima/dom/css.js 2010-03-27 14:04:22 UTC (rev 1761)
@@ -648,11 +648,17 @@
*CSSprimitiveValueのリストを収納している。なお、その際に、writingModeなどはwriting-modeに変更している
*/
(function(){
- var s = [], az = /([A-Z])/g;
+ var s = [];
for (var i in CSS2Properties) {
if(CSS2Properties.hasOwnProperty(i)) {
var n = s[s.length] = new CSSPrimitiveValue();
- t = i.replace(az, "-" +RegExp.$1.toLowerCase());
+ var t = i.replace(/([A-Z])/, "-");
+ if (!!RegExp.$1) {
+ var u = "-" +RegExp.$1.toLowerCase();
+ } else {
+ var u = "-";
+ }
+ t = t.replace(/\-/, u);
n.cssText += t;
n.cssText += ":";
n.cssText += CSS2Properties[i];
@@ -660,7 +666,6 @@
}
}
CSS2Properties._list = s;
- az = null;
})();
function CSSStyleSheet() {