Skip to content

Instantly share code, notes, and snippets.

@ctbarna
Created October 9, 2012 19:31
Show Gist options
  • Save ctbarna/3860908 to your computer and use it in GitHub Desktop.
Save ctbarna/3860908 to your computer and use it in GitHub Desktop.
Closure to generate a contextual jQuery selector.
var $createContext = function (context) { return function(selector) { return $(selector, context) }; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment