function bind(func, obj) {
        var slice = Array.prototype.slice;
        var args = slice.call(arguments, 2);
        return function () {
            return func.apply(obj, args.concat(slice.call(arguments)));
        };
    }
/**
    * Create a function bound to a given object
    * Thanks to underscore.js
    */
Create a function bound to a given object
Thanks to underscore.js
Create a function bound to a given object Thanks to underscore . js
function bind(func, obj) {
        var slice = Array.prototype.slice;
        var args = slice.call(arguments, 2);
        return function () {
            return func.apply(obj, args.concat(slice.call(arguments)));
        };
    }
function bind ( func , obj ) { var slice = Array . prototype . slice ; var args = slice . call ( arguments , 2 ) ; return function ( ) { return func . apply ( obj , args . concat ( slice . call ( arguments ) ) ) ; } ; }
Create a function bound to a given object
 Thanks to underscore.js
Create a function bound to a given object Thanks to underscore . js