X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/grid/CallBroker.js?ds=inline diff --git a/examples/grid/CallBroker.js b/examples/grid/CallBroker.js deleted file mode 100644 index f951818d..00000000 --- a/examples/grid/CallBroker.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - -Ext.CallBroker = function(config){ - if(!config.reader){ - this.reader = new Ext.data.JsonReader({}, [ - 'id', 'type', 'call', 'args' - ]); - } - Ext.CallBroker.superclass.constructor.call(this, config); -}; - -Ext.extend(Ext.CallBroker, Ext.data.Store, { - loadRecords : function(o, options, success){ - Ext.CallBroker.superclass.loadRecords.apply(this, arguments); - if(o && success){ - this.data.each(this.delegateCall, this); - } - }, - - delegateCall : function(c){ - var o = this[c.type](c.data); - o[c.call][c.args instanceof Array ? 'apply' : 'call'](o, c.args); - }, - - store : function(c){ - return Ext.StoreMgr.lookup(c.id); - }, - - component : function(c){ - return Ext.getCmp(c.id); - }, - - element : function(c){ - return Ext.get(c.id); - }, - - object : function(c){ - return new Function('return '+c.id)(); - } -}); \ No newline at end of file