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