svnno****@sourc*****
svnno****@sourc*****
2009年 12月 27日 (日) 22:20:54 JST
Revision: 1506 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1506 Author: dhrname Date: 2009-12-27 22:20:54 +0900 (Sun, 27 Dec 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/057/sie.js Modified: branches/05x/057/sie.js =================================================================== --- branches/05x/057/sie.js 2009-12-27 13:13:42 UTC (rev 1505) +++ branches/05x/057/sie.js 2009-12-27 13:20:54 UTC (rev 1506) @@ -279,25 +279,26 @@ te = ns; } else { if (te.nodeType === 1) { //要素ならば - if (_isShape[te.nodeName]) { + var ten = te.nodeName; + if (_isShape[ten]) { s = new (_STElement[te.getAttribute("tag")])(te, matrix, w, h); - } else if (_isText[te.nodeName]) { + } else if (_isText[ten]) { s = new STText(te, matrix, w, h); - } else if (_isGroup[te.nodeName]) { + } else if (_isGroup[ten]) { s = new STGroupElement(te, matrix, w, h); - } else if (te.nodeName === "A") { + } else if (ten === "A") { s = new STAElement(te, matrix); cmatrix = s.transformable; - } else if (te.nodeName === "image") { + } else if (ten === "image") { s = new STImage(te, matrix, w, h); - } else if (te.nodeName === "set") { + } else if (ten === "set") { s = new STSetElement(te, matrix, w, h); } if (s) { this.children[this.children.length] = s; var s = null; //var宣言によって、再設定 } - if (gname.indexOf(te.nodeName) === -1) { + if (gname.indexOf(ten) === -1) { this.chset(te, cmatrix, w, h); } }