LesJ
27 Jun 2012, 12:31 PM
This is really a basic JavaScript question... :-/
...we are creating an instance of EventBus... why there are no enclosing parenthesis () after EventBus?
See how me.controllers is assigned an instance of MixedCollection... there are parens () after MixedCollection...
Ext.define('Ext.app.Application', {
....
constructor: function(config) {
...
me.eventbus = new Ext.app.EventBus; // why not new Ext.app.EventBus();
controllers = Ext.Array.from(me.controllers);
ln = controllers && controllers.length;
me.controllers = new Ext.util.MixedCollection();
....
...we are creating an instance of EventBus... why there are no enclosing parenthesis () after EventBus?
See how me.controllers is assigned an instance of MixedCollection... there are parens () after MixedCollection...
Ext.define('Ext.app.Application', {
....
constructor: function(config) {
...
me.eventbus = new Ext.app.EventBus; // why not new Ext.app.EventBus();
controllers = Ext.Array.from(me.controllers);
ln = controllers && controllers.length;
me.controllers = new Ext.util.MixedCollection();
....