Spec-Zone .ru
спецификации, руководства, описания, API
Documentation Contents

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


Oracle and/or its affiliates Copyright © 1993, 2012, Oracle and/or its affiliates. All rights reserved.
Contact Us