Changeset 2093
- Timestamp:
- 2008-06-19 02:25:21 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/prototype/_source/core/dom/element.js
r2083 r2093 54 54 element.append( this ); 55 55 }, 56 56 57 57 appendText : function( text ) 58 58 { … … 67 67 getId : function() 68 68 { 69 var id = this.$.id; 70 return ( id && id.length > 0 ) ? id : null; 69 return this.$.id || null; 71 70 }, 72 71 … … 79 78 getNameAtt : function() 80 79 { 81 var name = this.$.name 82 return ( name && name.length > 0 ) ? name : null; 80 return this.$.name || null; 83 81 }, 84 82 … … 93 91 // Cache the lowercased name inside a closure. 94 92 var nodeName = this.$.nodeName.toLowerCase(); 95 96 97 return ( 93 94 return ( 98 95 /** @ignore */ 99 96 this.getName = function() … … 117 114 this.$.setAttribute( attributeName, value ); 118 115 }, 119 116 120 117 setAttributes : function( attributesPairs ) 121 118 {