+++ /dev/null
-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
-/**\r
- * @class Ext.data.SimpleStore\r
- * @extends Ext.data.Store\r
- * Small helper class to make creating Stores from Array data easier.\r
- * @cfg {Number} id The array index of the record id. Leave blank to auto generate ids.\r
- * @cfg {Array} fields An array of field definition objects, or field name string as specified to {@link Ext.data.Record#create}\r
- * @cfg {Array} data The multi-dimensional array of data.\r
- * @constructor\r
- * @param {Object} config\r
- */\r
-Ext.data.SimpleStore = function(config){\r
- Ext.data.SimpleStore.superclass.constructor.call(this, Ext.apply(config, {\r
- reader: new Ext.data.ArrayReader({\r
- id: config.id\r
- },\r
- Ext.data.Record.create(config.fields)\r
- )\r
- }));\r
-};\r
-Ext.extend(Ext.data.SimpleStore, Ext.data.Store, {\r
- loadData : function(data, append){\r
- if(this.expandData === true){\r
- var r = [];\r
- for(var i = 0, len = data.length; i < len; i++){\r
- r[r.length] = [data[i]];\r
- }\r
- data = r;\r
- }\r
- Ext.data.SimpleStore.superclass.loadData.call(this, data, append);\r
- }\r
-});
\ No newline at end of file