Как я могу объекты по умолчанию? - PullRequest
1 голос
/ 22 июня 2011

Я хочу сделать эквивалент ...

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

1 Ответ

2 голосов
/ 22 июня 2011

Не могли бы вы сделать это?

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

Или вам нужно снова ссылаться на объект аргументов позже?

...