How can I default objects?
I want to do the equivalent of...
//Nonsensical开发者_如何学JAVA
config.items=[Ext.create('Foo.register.AccountTypeForm',{config:arguments.hidden=true})];
//works ofc, but it looks untidy
arguments.hidden=true;
config.items=[Ext.create('Foo.register.AccountTypeForm',{config:arguments})];
Could you do this?
config.items=[Ext.create('Foo.register.AccountTypeForm',
{config:{hidden:true}})];
Or do you need reference the arguments object again later?
精彩评论