MemoryProxy-min.js 589 B

1234567891011121314151617181920212223242526
  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.MemoryProxy = function(A) {
  7. Ext.data.MemoryProxy.superclass.constructor.call(this);
  8. this.data = A
  9. };
  10. Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, {
  11. load : function(F, C, G, D, B) {
  12. F = F || {};
  13. var A;
  14. try {
  15. A = C.readRecords(this.data)
  16. } catch (E) {
  17. this.fireEvent("loadexception", this, B, null, E);
  18. G.call(D, null, B, false);
  19. return
  20. }
  21. G.call(D, A, B, true)
  22. },
  23. update : function(B, A) {
  24. }
  25. });