Answered: What is equivalent of ST1 Observable.capture method?

What is the equivalent in ST2 of the ST1 Ext.util.Observable.capture call? I made use of this method quite a bit in debugging to see all events coming off an object and the timing of the calls. If possible I would like to continue using it.

There isn't one built in. All the capture function did was create an interceptor to the fireEvent function. So what you could do is override Ext.mixin.Obervable hook into the fireEvent and fireAction methods:

There isn't one built in. All the capture function did was create an interceptor to the fireEvent function. So what you could do is override Ext.mixin.Obervable hook into the fireEvent and fireAction methods:

There isn't one built in. All the capture function did was create an interceptor to the fireEvent function. So what you could do is override Ext.mixin.Obervable hook into the fireEvent and fireAction methods:

Thanks mitchellsimoens. This looks perfect. I think it also answers another question for me. Namely, is this the recommended way to do what used to be done with Ext.override? I have a file full of those from ST1 where I patched classes with bug fixes.