/*!
- * Ext JS Library 3.0.0
+ * Ext JS Library 3.0.3
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
function() {\r
var GETDOM = Ext.getDom,\r
GET = Ext.get,\r
- DH = Ext.DomHelper,\r
- isEl = function(el){\r
- return (el.nodeType || el.dom || typeof el == 'string'); \r
- };\r
+ DH = Ext.DomHelper;\r
\r
return {\r
/**\r
*/\r
insertFirst: function(el, returnDom){\r
el = el || {};\r
- if(isEl(el)){ // element\r
+ if(el.nodeType || el.dom || typeof el == 'string'){ // element\r
el = GETDOM(el);\r
this.dom.insertBefore(el, this.dom.firstChild);\r
return !returnDom ? GET(el) : el;\r
}else{ // dh config\r
return this.createChild(el, this.dom.firstChild, returnDom);\r
}\r
- },\r
+ },\r
\r
/**\r
* Replaces the passed element with this element\r
replaceWith: function(el){\r
var me = this,\r
Element = Ext.Element;\r
- if(isEl(el)){\r
+ if(el.nodeType || el.dom || typeof el == 'string'){\r
el = GETDOM(el);\r
me.dom.parentNode.insertBefore(el, me.dom);\r
}else{\r