X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..refs/tags/3.0.3:/docs/source/Element.insertion.html diff --git a/docs/source/Element.insertion.html b/docs/source/Element.insertion.html index a5744f3e..0160e8c7 100644 --- a/docs/source/Element.insertion.html +++ b/docs/source/Element.insertion.html @@ -1,21 +1,24 @@ - - - The source code - - - - -
/**
+
+
+  The source code
+    
+    
+
+
+    
/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+/**
  * @class Ext.Element
  */
 Ext.Element.addMethods(
 function() {
 	var GETDOM = Ext.getDom,
 		GET = Ext.get,
-		DH = Ext.DomHelper,
-        isEl = function(el){
-            return  (el.nodeType || el.dom || typeof el == 'string');  
-        };
+		DH = Ext.DomHelper;
 	
 	return {
 	    
/** @@ -64,14 +67,14 @@ function() { */ insertFirst: function(el, returnDom){ el = el || {}; - if(isEl(el)){ // element + if(el.nodeType || el.dom || typeof el == 'string'){ // element el = GETDOM(el); this.dom.insertBefore(el, this.dom.firstChild); return !returnDom ? GET(el) : el; }else{ // dh config return this.createChild(el, this.dom.firstChild, returnDom); } - }, + },
/** * Replaces the passed element with this element @@ -93,7 +96,7 @@ function() { replaceWith: function(el){ var me = this, Element = Ext.Element; - if(isEl(el)){ + if(el.nodeType || el.dom || typeof el == 'string'){ el = GETDOM(el); me.dom.parentNode.insertBefore(el, me.dom); }else{ @@ -145,6 +148,6 @@ function() { return returnEl ? Ext.get(el) : el; } } -}());
- +}());
+ \ No newline at end of file