Home

How to observe all the events on a view

Published on 1/6/2012


Here’s how to observe all of the events on a view:

var view = Ext.create('My.view.SomeView');

Ext.util.Observable.capture(view, function(){
  console.log(arguments);
});

This will show output in the console window whenever an event happens to the view, such as render. A useful debugging tool.

... views