Skip to content

Instantly share code, notes, and snippets.

@criso
Created November 16, 2012 15:21
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 criso/4088143 to your computer and use it in GitHub Desktop.
Save criso/4088143 to your computer and use it in GitHub Desktop.
context separation @ded style
(function () {
with (this) {
!function (context) {
context.hello = function (msg) {
alert(msg);
};
}(this)
hello('world');
}
}).call({});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment