[Sie-announce] SIEコード [1755] setRGBColorメソッドの更なる修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 3月 25日 (木) 23:27:08 JST


Revision: 1755
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1755
Author:   dhrname
Date:     2010-03-25 23:27:08 +0900 (Thu, 25 Mar 2010)

Log Message:
-----------
setRGBColorメソッドの更なる修正

Modified Paths:
--------------
    branches/ufltima/dom/svg.js

Modified: branches/ufltima/dom/svg.js
===================================================================
--- branches/ufltima/dom/svg.js	2010-03-25 14:23:25 UTC (rev 1754)
+++ branches/ufltima/dom/svg.js	2010-03-25 14:27:08 UTC (rev 1755)
@@ -525,9 +525,7 @@
   } else if (rgbColor.indexOf("#") === 0) {  //#を含む場合
     rgbColor = rgbColor.replace(/[\da-f][\da-f]/gi, function(s) {
       return (parseInt(s, 16)+",");
-    })
-              .replace(/#/, "rgb(");
-    rgbColor += ")";
+    });
   }
   var s = rgbColor.match(/\d+/g);
   this.rgbColor.red.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, parseFloat(s[0]));




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