View Full Version : cachedConfig: question about class system
7 Apr 2012, 10:49 AM
cachedConfig, eventedConfig - what is it and how it works?
7 Apr 2012, 1:32 PM
It's a lengthy topic and it's currently a private feature. Generally you shouldn't use / care about it unless you know exactly what you're doing.
For a short explanation, items listed in cachedConfig are only initialized once, during the first time that Component is instantiated. The resulted DOM element will then be cloned as-it for sub-sequent instances. It cuts down initialization significantly for config items that purely tightened to DOM element processing, and repetitive in nature.
Again this is private API and subject to change.
7 Apr 2012, 2:12 PM
Thanks, I understood what this is a private API, but I think this is may be useful for development.
For example: 'template' (property in components classes, also private API) is very very useful for developing custom components.
Powered by vBulletin® Version 4.1.5 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.