Changeset 1326
- Timestamp:
- 06/22/12 13:56:59 (1 year ago)
- Files:
-
- 1 modified
-
trunk/XinhaCore.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r1314 r1326 3659 3659 } 3660 3660 3661 if( editor._textArea.hasAttribute('onxinhaready'))3661 if(Xinha.hasAttribute(editor._textArea, 'onxinhaready')) 3662 3662 { 3663 3663 (function() { eval(editor._textArea.getAttribute('onxinhaready')) }).call(editor.textArea); … … 7929 7929 return false; 7930 7930 }; 7931 /** Determines if a given element has a given attribute. IE<8 doesn't support it nativly */ 7932 Xinha.hasAttribute = function(el,at) 7933 { 7934 if(typeof el.hasAttribute == 'undefined') 7935 { 7936 var node = el.getAttributeNode(at); 7937 return !!(node && (node.specified || node.nodeValue)); 7938 } 7939 7940 return el.hasAttribute(at); 7941 } 7931 7942 7932 7943 /** Detect the size of visible area
