class type statics =Inheritsobject
..end
method capture : 'a 'b 'c. 'a Js.t -> 'b Js.callback -> 'c Js.t Js.optdef -> unit Js.meth
Starts capture on the specified Observable. All events will be passed to the supplied function with the event name + standard signature of the event before the event is fired. If the supplied function returns false, the event will not fire.
Parameters:
Ext_util_Observable.t Js.t
The Observable to capture events from.
_ Js.callback
The function to call when an event is fired.
_ Js.t
(optional)
The scope (this
reference) in which the function is executed. Defaults to
the Observable firing the event.
method observe : 'd 'e. 'd Js.callback -> 'e Js.t -> unit Js.meth
Sets observability on the passed class constructor.
This makes any event fired on any instance of the passed class also fire a single event through the class allowing for central handling of events on many instances at once.
Usage:
Ext.util.Observable.observe(Ext.data.Connection);
Ext.data.Connection.on('beforerequest', function(con, options) {
console.log('Ajax request made to ' + options.url);
});
Parameters:
_ Js.callback
The class constructor to make observable.
_ Js.t
An object containing a series of listeners to add. See addListener.
method releaseCapture : 'f. 'f Js.t -> unit Js.meth
Removes all added captures from the Observable.
Parameters:
Ext_util_Observable.t Js.t
The Observable to release