Skip to content

Instantly share code, notes, and snippets.

@FGRibreau
Created July 30, 2010 17:01
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 FGRibreau/500901 to your computer and use it in GitHub Desktop.
Save FGRibreau/500901 to your computer and use it in GitHub Desktop.
How to detect if $ == jQuery
var isjQuery = function($){
return 'fn' in $ && !!$.fn.jquery;
}($);
//My original code: http://twitter.com/FGRibreau/status/19641898644
//piouPioum 2 cents: http://twitter.com/piouPiouM/status/19642960179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment