|
jrunscript JavaScript built-ins | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--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. |
Constructor Detail |
JSInvoker(obj)
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
obj
- object to be wrapped by JSInvoker
|
jrunscript JavaScript built-ins | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |