Skip to content

Instantly share code, notes, and snippets.

@mgile
Created June 28, 2011 15:20
Show Gist options
  • Save mgile/1051370 to your computer and use it in GitHub Desktop.
Save mgile/1051370 to your computer and use it in GitHub Desktop.
CALLBACK Javascript function to maintain scope
function CALLBACK(objScope, funcName) {
return function() {
objScope[funcName].apply(objScope, arguments);
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment