You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// utils for pass a class constructor and arguments, and return the// instance of the given class.functionpassthroughModule(initializer,args){returnnew(Function.prototype.bind.apply(initializer,[null].concat(args)));}
Then we would use this function:
classFoo{ ... }passthroughModule(Foo,args);
The text was updated successfully, but these errors were encountered:
yorkie
changed the title
How to pass through the arguments to Instantiate the given class
pass through the arguments to Instantiate the given class
Jul 6, 2017
yorkie
changed the title
pass through the arguments to Instantiate the given class
pass through arguments to Instantiate the given class
Jul 6, 2017
yorkie
changed the title
pass through arguments to Instantiate the given class
Pass through arguments to Instantiate the given class
Jul 6, 2017
Here is the demo function:
Then we would use this function:
The text was updated successfully, but these errors were encountered: