estesbubba
3 Feb 2012, 12:30 PM
In PR4 when you did an Ext.define(), the params would go into config{} if defined there otherwise at the class level. In B1 it appears everything ends up in config{} even if it wasn't defined there. Just making sure I'm not missing something before I go and change all our code.
Here is an example of what I'm talking about.
Ext.define('App.view.A', {
a: 1,
b: 2,
config: {
c: 3,
d: 4
}
initialize: function() {
this.a is 1
this.b is 2
this.config.a is 10
this.config.b is 11
this.config.c is 20
}
});
Ext.create('App.view.A', {
a: 10,
b: 11,
c: 20
})
Here is an example of what I'm talking about.
Ext.define('App.view.A', {
a: 1,
b: 2,
config: {
c: 3,
d: 4
}
initialize: function() {
this.a is 1
this.b is 2
this.config.a is 10
this.config.b is 11
this.config.c is 20
}
});
Ext.create('App.view.A', {
a: 10,
b: 11,
c: 20
})