Bug Tracker

Modify

Ticket #2162 (closed bug: fixed)

Opened 5 years ago

Last modified 15 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 5 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.