I have a function like:
define(['module', 'controller'], function(module, controller){ (new module).build(); });
inside module.build I want to get the arguments of an automatically parent type:
module = function(){ this.build = function(args){
I know I can do something like:
module.build.apply(this, arguments);
but I was wondering if there is a better way. Any thoughts?
source share