3
* Copyright(c) 2006-2008, Ext JS, LLC.
6
* http://extjs.com/license
10
* @class Ext.air.NativeObservable
11
* @extends Ext.util.Observable
13
* Adds ability for Ext Observable functionality to proxy events for native (AIR) object wrappers
18
Ext.air.NativeObservable = Ext.extend(Ext.util.Observable, {
19
addListener : function(name){
20
this.proxiedEvents = this.proxiedEvents || {};
21
if(!this.proxiedEvents[name]){
24
var args = Array.prototype.slice.call(arguments, 0);
26
instance.fireEvent.apply(instance, args);
28
this.proxiedEvents[name] = f;
29
this.getNative().addEventListener(name, f);
31
Ext.air.NativeObservable.superclass.addListener.apply(this, arguments);
35
Ext.air.NativeObservable.prototype.on = Ext.air.NativeObservable.prototype.addListener;
b'\\ No newline at end of file'