| Documentation Contents

Overview | File | Class | Tree | Index | Help
| jrunscript JavaScript built-ins
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Constructor Detail

### 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

Overview | File | Class | Tree | Index | Help
| jrunscript JavaScript built-ins
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Wed Jun 8 13:29:43 2005

Copyright © 1995-2010 Sun Microsystems, Inc. All Rights Reserved. Please send comments using this Feedback page. | Java Technology