Показать сообщение отдельно
  #3 (permalink)  
Старый 14.05.2012, 18:07
Аватар для khusamov
Соединяю Node.js и Ext JS
Отправить личное сообщение для khusamov Посмотреть профиль Найти все сообщения от khusamov
 
Регистрация: 25.06.2009
Сообщений: 1,033

Цитата:
Сообщение от khusamov "Делаю как по инструкции сказано:"
где такое сказано?
Вот тут:
http://docs.sencha.com/ext-js/4-0/#!/guide/class_system

Цитирую:

Цитата:
2. Configuration
In Ext JS 4, we introduce a dedicated config property that gets processed by the powerful Ext.Class pre-processors before the class is created. Features include:

Configurations are completely encapsulated from other class members
Getter and setter, methods for every config property are automatically generated into the class' prototype during class creation if the class does not have these methods already defined.
An apply method is also generated for every config property. The auto-generated setter method calls the apply method internally before setting the value. Override the apply method for a config property if you need to run custom logic before setting the value. If apply does not return a value then the setter will not set the value. For an example see applyTitle below.
Ответить с цитированием