Skip to main content

Bug Tracker

Side navigation

#2162 closed bug (fixed)

Opened January 15, 2008 03:13AM UTC

Closed February 08, 2008 06:53PM UTC

Last modified March 15, 2012 09:35AM UTC

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

Attachments (0)
Change History (1)

Changed February 08, 2008 06:53PM UTC by paul comment:1

resolution: → fixed
status: newclosed