Skip to content

Instantly share code, notes, and snippets.

@hiromitz
Created December 9, 2010 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiromitz/734298 to your computer and use it in GitHub Desktop.
Save hiromitz/734298 to your computer and use it in GitHub Desktop.
delegator
/**
* delegate
* @param {Object} o target object
* @param function m target method
*/
function delegate(o, m){
return function(){
return m.apply(o, arguments);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment