-<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">(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
+ */
+(function(){
var EXTUTIL = Ext.util,
TOARRAY = Ext.toArray,
ISOBJECT = Ext.isObject,
TRUE = true,
FALSE = false;
-/**
+<div id="cls-Ext.util.Observable"></div>/**
* @class Ext.util.Observable
* Base class that provides a common interface for publishing events. Subclasses are expected to
* to have a property "events" with all the events defined, and, optionally, a property "listeners"
this.listeners = config.listeners;
// Call our superclass constructor to complete construction process.
- Employee.superclass.constructor.call(config)
+ Employee.superclass.constructor.call(this, config)
}
});
</code></pre>
* @return {Boolean} True if the event is being listened for, else false
*/
hasListener : function(eventName){
- var e = this.events[eventName];
+ var e = this.events[eventName.toLowerCase()];
return ISOBJECT(e) && e.listeners.length > 0;
},
findListener : function(fn, scope){
var list = this.listeners,
i = list.length,
- l,
- s;
- while(i--) {
+ l;
+
+ scope = scope || this.obj;
+ while(i--){
l = list[i];
- if(l) {
- s = l.scope;
- if(l.fn == fn && (s == scope || s == this.obj)){
+ if(l){
+ if(l.fn == fn && l.scope == scope){
return i;
}
}
return TRUE;
}
};
-})();</pre> \r
-</body>\r
+})();</pre>
+</body>
</html>
\ No newline at end of file