Class type Ext_util_Observable.statics


class type statics = object .. end
Inherits
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:


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:


method releaseCapture : 'f. 'f Js.t -> unit Js.meth

Removes all added captures from the Observable.

Parameters: