Bug Tracker

Ticket #2162 (closed bug: fixed)

Opened 11 months ago

Last modified 10 months ago

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

Reported by: kruckenb Assigned to: paul
Type: bug Priority: major
Milestone: 1.2.1 Component: ui
Version: 1.2.1 Keywords: ui shadow
Cc: Needs: Commit

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);

Attachments

Change History

Changed 10 months ago by paul

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.