-<html>\r
-<head>\r
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
- <title>The source code</title>\r
- <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
- <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
-</head>\r
-<body onload="prettyPrint();">\r
- <pre class="prettyprint lang-js">Ext.lib.Event = function() {
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+</head>
+<body onload="prettyPrint();">
+ <pre class="prettyprint lang-js">/*!
+ * Ext JS Library 3.2.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+Ext.lib.Event = function() {
var loadComplete = false,
unloadListeners = {},
retryCount = 0,
if(!v.checkReady || loadComplete || element.nextSibling || (doc && doc.body)) {
element = v.override ? (v.override === true ? v.obj : v.override) : element;
v.fn.call(element, v.obj);
- v = null;
+ onAvailStack.remove(v);
} else {
notAvail.push(v);
}
// This function should ALWAYS be called from Ext.EventManager
removeListener: function(el, eventName, fn) {
el = Ext.getDom(el);
- var i, len, li;
+ var i, len, li, lis;
if (el && fn) {
- if (eventName == UNLOAD) {
- if (unloadListeners[id] !== undefined) {
- for (i = 0, len = unloadListeners[id].length; i < len; i++) {
- li = unloadListeners[id][i];
- if (li && li[TYPE] == eventName && li[FN] == fn) {
- unloadListeners[id].splice(i, 1);
+ if(eventName == UNLOAD){
+ if((lis = unloadListeners[el.id]) !== undefined){
+ for(i = 0, len = lis.length; i < len; i++){
+ if((li = lis[i]) && li[TYPE] == eventName && li[FN] == fn){
+ unloadListeners[el.id].splice(i, 1);
}
}
}
}
};
- unloadListeners = null;
Ext.EventManager._unload();
doRemove(win, UNLOAD, EU._unload);
return pub;
}();
-</pre> \r
-</body>\r
+</pre>
+</body>
</html>
\ No newline at end of file