X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/src/data/StoreManager.js diff --git a/src/data/StoreManager.js b/src/data/StoreManager.js index 7a14b108..60ef8d03 100644 --- a/src/data/StoreManager.js +++ b/src/data/StoreManager.js @@ -13,38 +13,34 @@ If you are unsure which license is appropriate for your use, please contact the */ /** - * @class Ext.data.StoreManager - * @extends Ext.util.MixedCollection - *
Contains a collection of all stores that are created that have an identifier. - * An identifier can be assigned by setting the {@link Ext.data.AbstractStore#storeId storeId} - * property. When a store is in the StoreManager, it can be referred to via it's identifier: - *
-Ext.create('Ext.data.Store', {
- model: 'SomeModel',
- storeId: 'myStore'
-});
-
-var store = Ext.data.StoreManager.lookup('myStore');
- *
- * Also note that the {@link #lookup} method is aliased to {@link Ext#getStore} for convenience.
- * - * If a store is registered with the StoreManager, you can also refer to the store by it's identifier when - * registering it with any Component that consumes data from a store: - *
-Ext.create('Ext.data.Store', {
- model: 'SomeModel',
- storeId: 'myStore'
-});
-
-Ext.create('Ext.view.View', {
- store: 'myStore',
- // other configuration here
-});
- *
- *
- * @singleton
* @docauthor Evan Trimboli Creates a new store for the given id and config, then registers it with the {@link Ext.data.StoreManager Store Mananger}. - * Sample usage:
-
- Ext.regStore('AllUsers', {
- model: 'User'
- });
-
- //the store can now easily be used throughout the application
- new Ext.List({
- store: 'AllUsers',
- ... other config
- });
-
+ * Creates a new store for the given id and config, then registers it with the {@link Ext.data.StoreManager Store Mananger}.
+ * Sample usage:
+ *
+ * Ext.regStore('AllUsers', {
+ * model: 'User'
+ * });
+ *
+ * // the store can now easily be used throughout the application
+ * new Ext.List({
+ * store: 'AllUsers',
+ * ... other config
+ * });
+ *
* @param {String} id The id to set on the new store
* @param {Object} config The store config
- * @param {Constructor} cls The new Component class.
* @member Ext
* @method regStore
*/
@@ -167,11 +158,10 @@ Ext.define('Ext.data.StoreManager', {
};
/**
- * Gets a registered Store by id (shortcut to {@link Ext.data.StoreManager#lookup})
- * @param {String/Object} id The id of the Store, or a Store instance
- * @return {Ext.data.Store}
+ * Shortcut to {@link Ext.data.StoreManager#lookup}.
* @member Ext
* @method getStore
+ * @alias Ext.data.StoreManager#lookup
*/
Ext.getStore = function(name) {
return Ext.data.StoreManager.lookup(name);