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
Would be useful for shorthanding some method creations. For example:
/*** Wrapper for relevant model method* @param myMethodParam* @method method1* @method method2* @method method3* @method method4*/varthat=this;_.each(['method1','method2','method3','method4'],function(method){//Provide wrappers for methods on the model that the view wants direct references to.Controller.prototype[method]=function(){returnthat.model[method].apply(that._model,arguments);}});
Would be equivalent to
/*** Wrapper for relevant model method* @param myMethodParam* @method method1*//*** Wrapper for relevant model method* @param myMethodParam* @method method2*//*** Wrapper for relevant model method* @param myMethodParam* @method method3*//*** Wrapper for relevant model method* @param myMethodParam* @method method4*/varthat=this;_.each(['method1, method2, method3'],function(method){//Provide wrappers for methods on the model that the view wants direct references to.Controller.prototype[method]=function(){returnthat.model[method].apply(that._model,arguments);}});
Even better would be allowing something like:
/*** Wrapper for relevant model method* @param myMethodParam* @method method1, method2, method3, method4*/
The text was updated successfully, but these errors were encountered:
Would be useful for shorthanding some method creations. For example:
Would be equivalent to
Even better would be allowing something like:
The text was updated successfully, but these errors were encountered: