When not in no-conflict mode, JMVC adds the following helpers to function
Static Methods
bind
bind(f, obj) -> Function
Binds a function to another object. The object the function is binding
to is the second argument. Additional params are added to the callback function.
//basic example
var callback1 = MVC.Function.bind(function(){alert(this.library)}, {library: "jmvc"});
//shows with prepended args
var callback2 = MVC.Function.bind(
function(version, os){
alert(this.library+", "+version+", "+os);
},
{library: "jmvc"},
"1.5")