Skip to content

Instantly share code, notes, and snippets.

@tastycode
Created December 14, 2011 05:31
Show Gist options
  • Save tastycode/1475402 to your computer and use it in GitHub Desktop.
Save tastycode/1475402 to your computer and use it in GitHub Desktop.
Alternatives to unclear syntax wandwagon
with ({$: jQuery.noConflict()}) {
console.log("Check me out", $);
}
console.log($);
with ({$: jQuery.noConflict(), _: _.noConflict()}) {
console.log("Check me out", $);
console.log("Check me out", _);
}
console.log($);
console.log(_);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment