X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/source/Element.html diff --git a/docs/source/Element.html b/docs/source/Element.html index 17a3495b..f370a500 100644 --- a/docs/source/Element.html +++ b/docs/source/Element.html @@ -1,12 +1,18 @@ - - - - The source code - - - - -
/**
+
+
+      
+  The source code
+    
+    
+
+
+    
/*!
+ * Ext JS Library 3.2.1
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+/**
  * @class Ext.Element
  * 

Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.

*

All instances of this class inherit the methods of {@link Ext.Fx} making visual effects easily available to all DOM elements.

@@ -804,8 +810,15 @@ El.get = function(el){ return ex; } else if (el instanceof El) { if(el != docEl){ - el.dom = DOC.getElementById(el.id) || el.dom; // refresh dom element in case no longer valid, - // catch case where it hasn't been appended + // refresh dom element in case no longer valid, + // catch case where it hasn't been appended + + // If an el instance is passed, don't pass to getElementById without some kind of id + if (Ext.isIE && (el.id == undefined || el.id == '')) { + el.dom = el.dom; + } else { + el.dom = DOC.getElementById(el.id) || el.dom; + } } return el; } else if(el.isComposite) { @@ -826,7 +839,7 @@ El.get = function(el){ }; El.addToCache = function(el, id){ - id = id || el.id; + id = id || el.id; EC[id] = { el: el, data: {}, @@ -980,12 +993,7 @@ if(Ext.isIE || Ext.isGecko){ noBoxAdjust['button'] = 1; } - -Ext.EventManager.on(window, 'unload', function(){ - delete EC; - delete El._flyweights; -}); })(); -
- +
+ \ No newline at end of file