svnno****@sourc*****
svnno****@sourc*****
2010年 5月 25日 (火) 19:42:47 JST
Revision: 1845 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1845 Author: dhrname Date: 2010-05-25 19:42:47 +0900 (Tue, 25 May 2010) Log Message: ----------- switch文をif文に変更 Modified Paths: -------------- branches/ufltima/dom/svg.js Modified: branches/ufltima/dom/svg.js =================================================================== --- branches/ufltima/dom/svg.js 2010-05-25 10:36:31 UTC (rev 1844) +++ branches/ufltima/dom/svg.js 2010-05-25 10:42:47 UTC (rev 1845) @@ -179,22 +179,16 @@ s.setRotate(degz, _parseFloat(deg[1]), _parseFloat(degi[2])) } else if (degli <= 2) { var degz = _parseFloat(deg[0]); - switch (com) { - case "translate": + if (com === "translate") { s.setTranslate(degz, _parseFloat(deg[1] || deg[0])); - break; - case "scale": + } else if (com === "scale") { s.setScale(degz, _parseFloat(deg[1] || deg[0])); - break; - case "rotate": + } else if (com === "rotate") { s.setRotate(degz); - break; - case "skewX": + } else if (com === "skewX") { s.setSkewX(degz); - break; - case "skewY": + } else if (com === "skewY") { s.setSkewY(degz); - break; } } }