StoreMgr-min.js 551 B

123456789101112131415161718192021222324
  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.StoreMgr = Ext.apply(new Ext.util.MixedCollection(), {
  7. register : function() {
  8. for (var A = 0, B; B = arguments[A]; A++) {
  9. this.add(B)
  10. }
  11. },
  12. unregister : function() {
  13. for (var A = 0, B; B = arguments[A]; A++) {
  14. this.remove(this.lookup(B))
  15. }
  16. },
  17. lookup : function(A) {
  18. return typeof A == "object" ? A : this.get(A)
  19. },
  20. getKey : function(A) {
  21. return A.storeId || A.id
  22. }
  23. });