X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/Element.insertion.html diff --git a/docs/source/Element.insertion.html b/docs/source/Element.insertion.html index 0160e8c7..eac4a9e3 100644 --- a/docs/source/Element.insertion.html +++ b/docs/source/Element.insertion.html @@ -1,17 +1,12 @@ - -
-/*! - * Ext JS Library 3.0.3 - * Copyright(c) 2006-2009 Ext JS, LLC - * licensing@extjs.com - * http://www.extjs.com/license - */ -/** + + + ++ \ No newline at end of fileThe source code + + + + +/** * @class Ext.Element */ Ext.Element.addMethods( @@ -94,8 +89,8 @@ function() { * @return {Ext.Element} this */ replaceWith: function(el){ - var me = this, - Element = Ext.Element; + var me = this; + if(el.nodeType || el.dom || typeof el == 'string'){ el = GETDOM(el); me.dom.parentNode.insertBefore(el, me.dom); @@ -103,10 +98,11 @@ function() { el = DH.insertBefore(me.dom, el); } - delete Element.cache[me.id]; + delete Ext.elCache[me.id]; Ext.removeNode(me.dom); me.id = Ext.id(me.dom = el); - return Element.cache[me.id] = me; + Ext.Element.addToCache(me.isFlyweight ? new Ext.Element(me.dom) : me); + return me; }, /** @@ -148,6 +144,6 @@ function() { return returnEl ? Ext.get(el) : el; } } -}());- +}());