event-proxy.js
function bind(scope, method) {
  var args = slice.call(arguments, 2)

  if (typeof method === 'string') {
    method = scope[method]
  }
  if (!method) {
    throw new Error('Proxy: method `' + method + '` does not exist')
  }
  return function() {
    return method.apply(scope, concat.apply(args, arguments))
  }
}
function bind(scope, method) {
  var args = slice.call(arguments, 2)

  if (typeof method === 'string') {
    method = scope[method]
  }
  if (!method) {
    throw new Error('Proxy: method `' + method + '` does not exist')
  }
  return function() {
    return method.apply(scope, concat.apply(args, arguments))
  }
}
function bind ( scope , method ) { var args = slice . call ( arguments , 2 ) if ( typeof method === 'string' ) { method = scope [ method ] } if ( ! method ) { throw new Error ( 'Proxy: method `' + method + '` does not exist' ) } return function ( ) { return method . apply ( scope , concat . apply ( args , arguments ) ) } }
Call a method of the given scope, prepending any given
args to the function call along with sent arguments

@param {Object} scope of method call
@param {String} method name
@param {...} additional arguments to be used every method call
@return {Object} js object
@api private
Call a method of the given scope prepending any given args to the function call along with sent arguments