if( X.Dom.Attr.HAS_VALUE[ this._tag ] ){\r
if( this._newAttrs && X.inObject( nameOrObj, this._newAttrs ) ) return this._newAttrs[ nameOrObj ];\r
if( elm = X.Dom.DOM_IE4 ? this._rawObject || this._ie4getRawNode() : this._rawObject ){\r
- attrs[ nameOrObj ] = elm[ nameOrObj ]; // getAttribute( nameOrObj )?\r
+ if( !attrs ) attrs = this._attrs = {};\r
+ return attrs[ nameOrObj ] = elm[ nameOrObj ]; // getAttribute( nameOrObj )?\r
};\r
- return attrs[ nameOrObj ];\r
};\r
break;\r
};\r
case 'cssText' :\r
return this.cssText( v );\r
};\r
- \r
+ // debug\r
if( name.indexOf( 'on' ) === 0 ){\r
X.Notification.warn( 'xnode.attr("' + name + '") is wrong, xnode.listen() & xnode.unlisten().' );\r
return;\r