Opened 15 years ago

Closed 15 years ago

Last modified 14 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.5
Component: ui.core 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 (3)

comment:1 Changed 15 years ago by paul

Resolution: fixed
Status: newclosed

comment:2 Changed 15 years ago by (none)

Milestone: 1.2.1

Milestone 1.2.1 deleted

comment:3 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.