Class JSInvoker
Object
|
+--JSInvoker
- class
JSInvoker
Defined in init.js
Constructor Summary |
JSInvoker
(obj)
Creates an object that delegates all method calls on
it to the 'invoke' method on the given delegate object.
|
JSInvoker
JSInvoker(obj)
Creates an object that delegates all method calls on
it to the 'invoke' method on the given delegate object.
Example:
var x = { invoke: function(name, args) { //code...}
var y = new JSInvoker(x);
y.func(3, 3); // calls x.invoke('func', args); where args is array of arguments
Parameters:
obj
- object to be wrapped by JSInvoker