piyushrajput / jquery-ui-for-ipad-and-iphone

Automatically exported from code.google.com/p/jquery-ui-for-ipad-and-iphone
0 stars 0 forks source link

use jQuery instead of $ to avoid conflicts #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
jQuery uses the $ notation as a shorthand, but other Javascript libraries do, 
too. To solve this, jQuery provides a .noConflict method 
(http://api.jquery.com/jQuery.noConflict/), which releases the $ notation but 
still allows you to refer to the library as "jQuery". For this to work, though, 
plugins also have to respect this notation.

I've attached a patch that, when applied to this plugin, should give it 
noConflict compatibility. The patch also includes matt.motherway's resolution 
of issue #2.

Original issue reported on code.google.com by singingw...@gmail.com on 27 Oct 2010 at 7:56

Attachments: