Bug Tracker

Opened 11 years ago

Closed 10 years ago

Last modified 6 years ago

#2162 closed bug (fixed)

jQuery.noConflict() breaks ui.shadow.js (jQuery UI 1.0)

Reported by: kruckenb Owned by: paul
Priority: major Milestone: 1.2.1
Component: ui Version: 1.2.1
Keywords: ui shadow Cc:
Blocked by: Blocking:

Description

If jQuery (1.2.1) is loaded in noconflict mode (jQuery.noConflict()), ui.shadow.js generates an error.

Last line of ui calls ($) instead of (jQuery).

To duplicate: <SCRIPT LANGUAGE='JavaScript' SRC='jquery-1.2.1.js'></SCRIPT> <SCRIPT LANGUAGE='JavaScript'>jQuery.noConflict()</SCRIPT> <SCRIPT LANGUAGE='JavaScript' SRC='jquery.ui-1.0/ui.shadow.js'></SCRIPT>

Error generated: "$ has no properties - ui.shadow.js line 4"

This patch fixes the problem:

--- ui.shadow.js Mon Jan 14 20:08:52 2008 +++ ui.shadow.js.1 Mon Jan 14 20:08:46 2008 @@ -84,4 +84,4 @@

};

-})($); +})(jQuery);

Change History (1)

comment:1 Changed 10 years ago by paul

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.