1

I want to do the equivalent of...

//Nonsensical
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})];
4

1 に答える 1

2

Could you do this?

config.items=[Ext.create('Foo.register.AccountTypeForm',
 {config:{hidden:true}})];

Or do you need reference the arguments object again later?

于 2011-06-22T17:32:15.513 に答える