SimpleStore-min.js 652 B

12345678910111213141516171819202122232425
  1. /*
  2. * Ext JS Library 2.0 Copyright(c) 2006-2007, Ext JS, LLC. licensing@extjs.com
  3. *
  4. * http://extjs.com/license
  5. */
  6. Ext.data.SimpleStore = function(A) {
  7. Ext.data.SimpleStore.superclass.constructor.call(this, Ext.apply(A, {
  8. reader : new Ext.data.ArrayReader({
  9. id : A.id
  10. }, Ext.data.Record.create(A.fields))
  11. }))
  12. };
  13. Ext.extend(Ext.data.SimpleStore, Ext.data.Store, {
  14. loadData : function(E, B) {
  15. if (this.expandData === true) {
  16. var D = [];
  17. for (var C = 0, A = E.length; C < A; C++) {
  18. D[D.length] = [E[C]]
  19. }
  20. E = D
  21. }
  22. Ext.data.SimpleStore.superclass.loadData.call(this, E, B)
  23. }
  24. });