PDA

View Full Version : [OPEN] EventManager is now deprecated; what replaces it?



bartyhoho
1 Oct 2014, 12:00 PM
The API says Ext.EventManager is deprecated: http://docs.sencha.com/extjs/5.0/apidocs/#!/api/Ext.EventManager. So what, if anything, has replaced it?

I was going to use it to listen to onWindowUnload events. Seems like something that could (should?) be part of Ext.Application. If there's a .launch() method, why not have an .unload() method too?

dongryphon
1 Oct 2014, 12:42 PM
I'm going to move this to Bugs forum so I can link a Feature Request ticket to it - you're right there should be something more for unload processing.

dongryphon
1 Oct 2014, 12:46 PM
This should work:


Ext.get(window).on('unload', this.onUnload, this);


But an application-level event and/or template method would be better.

Greendrake
7 Aug 2015, 9:21 PM
Seems like nothing has changed with the new major version, 6. OK, will fallback to Ext.get(window).on('unload' for now.