Changeset 2093

Show
Ignore:
Timestamp:
2008-06-19 02:25:21 (7 months ago)
Author:
fredck
Message:

Small optimizations to CKEDITOR.dom.element.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • CKEditor/branches/prototype/_source/core/dom/element.js

    r2083 r2093  
    5454                element.append( this ); 
    5555        }, 
    56          
     56 
    5757        appendText : function( text ) 
    5858        { 
     
    6767        getId : function() 
    6868        { 
    69                 var id = this.$.id; 
    70                 return ( id && id.length > 0 ) ? id : null; 
     69                return this.$.id || null; 
    7170        }, 
    7271 
     
    7978        getNameAtt : function() 
    8079        { 
    81                 var name = this.$.name 
    82                 return ( name && name.length > 0 ) ? name : null; 
     80                return this.$.name || null; 
    8381        }, 
    8482 
     
    9391                // Cache the lowercased name inside a closure. 
    9492                var nodeName = this.$.nodeName.toLowerCase(); 
    95                  
    96                  
    97                 return (  
     93 
     94                return ( 
    9895                /** @ignore */ 
    9996                this.getName = function() 
     
    117114                this.$.setAttribute( attributeName, value ); 
    118115        }, 
    119          
     116 
    120117        setAttributes : function( attributesPairs ) 
    121118        {