ExtJS - capture all events

To capture all events for an object, various search queries say that all I need to do is use:

Ext.util.Observable.capture(object, function(stuff){console.log(stuff);});

But I get the error:

Ext.util.Observable.capture is not a function

Is there something I'm doing wrong?

+4
source share
1 answer

There seems to be a bug in Ext JS, but you can still use it Ext.mixin.Observable.capture.

Here is an example.

+5
source

Source: https://habr.com/ru/post/1615312/


All Articles