Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What JavaScript libraries are known to use the global dollar sign: window.$?

Tags:

javascript

Which JavaScript libraries take over the $ variable in the global scope?

If the library provides a different name on the global namespace, or provides a method to relinquish window.$, could you link to the proper function in their documentation any maybe a little code example of its use?

Having such a list could be useful in debugging potential conflicts with each other very quickly.

like image 439
gnarf Avatar asked Jan 08 '11 02:01

gnarf


2 Answers

Scanning this page, the only ones that come to mind are:

  • jQuery - Provides jQuery.noConflict() to release the $
  • Prototype
  • MooTools
like image 50
Chris Laplante Avatar answered Oct 13 '22 00:10

Chris Laplante


Also zepto: http://zeptojs.com/

zepto actually matches most of the jQuery API.

like image 29
Christophe Avatar answered Oct 13 '22 00:10

Christophe