Skip to content

Instantly share code, notes, and snippets.

@liminal
Created October 23, 2012 14:51
Show Gist options
  • Save liminal/3939213 to your computer and use it in GitHub Desktop.
Save liminal/3939213 to your computer and use it in GitHub Desktop.
Lite closure i js
var importantvariable="superimportant!";
asynchronous_api_call(
'http://anrops-URL',
function (closedOverParam) {
return function (response) {
alert(closedOverParam);
};
}(importantvariable);
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment