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