View Full Version : Ext.ux.MsgBus necessary in Ext4.1!?
13 Nov 2012, 3:16 AM
in a older Ext3 application i use the great Ext.ux.MsgBus plugin from Saki http://www.sencha.com/forum/showthread.php?80829.
Is this for Ext4.1 also necessary or have 4.1 internal alternatives to replace this?
13 Nov 2012, 8:11 AM
There is the Ext.app.EventBus that is a private class included in the Ext.app.Application instance. I think that is where it stores the component query selectors from the Application.control configuration parameter when you create an application. I don't know if it's enough to fully implement the mediator pattern since the control queries only accept components and will not allow you to attach events to classes that you have implemented the Observable class/mixin in, but it might server your needs. I imagine something like the MsgBus will still be necessary if that is the pattern you follow when writing complex apps.
14 Nov 2012, 11:55 AM
in my case the EventBus works for me... nice!
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.