svnno****@sourc*****
svnno****@sourc*****
2010年 2月 3日 (水) 20:36:44 JST
Revision: 1629 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1629 Author: dhrname Date: 2010-02-03 20:36:44 +0900 (Wed, 03 Feb 2010) Log Message: ----------- setAttributeNSからSVGに関する記述を除去 Modified Paths: -------------- branches/ufltima/core.js Modified: branches/ufltima/core.js =================================================================== --- branches/ufltima/core.js 2010-02-03 11:25:57 UTC (rev 1628) +++ branches/ufltima/core.js 2010-02-03 11:36:44 UTC (rev 1629) @@ -613,38 +613,6 @@ } } localName = null; - if(this.namespaceURI === "http://www.w3.org/svg/2000") { - try{ //以下でfill,storke要素のリセットが必要 - if (this instanceof STGroupElement) { //g要素ならば - this.paint = NAIBU.PaintColor.prototype.cache[this.tar.uniqueID]; - this.setProperty(localName, value) - } else { - var tgebtfill = this.tar.getElementsByTagName("fill"), tgebtstroke = this.tar.getElementsByTagName("stroke"); - if (tgebtfill.length > 0) { - this.tar.removeChild(tgebtfill[0]); - } - if (tgebtstroke.length > 0) { - this.tar.removeChild(tgebtstroke[0]); - } - this.setProperty(localName, value) - } - if (localName === "transform") { - var tar = {getAttribute : (function(n){return value})}; - this.transformable = NAIBU.transformToCTM(tar, this.partransformable); - tar = null; - this.set(this.w, this.h); - } - var tn = this[localName]; - if (tn !== void 0) { //属性が定義されていれば - if (typeof tn === "string"){ //文字列の場合 - this[tn] = value; - } else if (tn instanceof STLength) { //長さの場合 - this[tn].newValueSpecifiedUnits(this[tn].uniType, parseFloat(value)); - } - this.set(this.w, this.h); - } - }catch(e){} - } }; /*void*/ Element.prototype.removeAttributeNS = function( /*string*/ namespaceURI, /*string*/ localName) { };