Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#4224 closed bug (fixed)

Misleading error message when JQueryUI loaded twice on page

Reported by: nlothian Owned by:
Priority: minor Milestone: 1.7
Component: ui.core Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

Summary: JQueryUI should detect if has previously been loaded on a page

What steps will reproduce the problem?

  1. Page includes script tag loading JQueryUI
  1. Page also loads JQueryUI using google.load function
  1. A call to .show() on an element gives a "too much recursion" error deep

inside JQueryUI

  1. Developer doesn't realize there are two copies being loaded, and -

trying to do the right thing - starts to try an isolate a test case for what appeared to be a JQueryUI bug

  1. Developer suddenly realizes it is a problem with the library being

loaded twice - and - having spent some hours initially tracking down the problem - decides to raise it on the google AJAX bug tracking systemin the hope that google.load(..) could handle this case better.

  1. Developer raises http://code.google.com/p/google-ajax-apis/issues/detail?id=204 against the Google AJAX Google.load() function
  1. Google politely points out that this is a JQueryUI problem, not a Google problem.
  1. Developer recreates test case using plain script loading, and raises this bug

Attachments (1)

index.html (1.5 KB) - added by nlothian 14 years ago.
test case - run in IE to get nasty message box, or Firefox+Firebug to get console error

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by nlothian

Attachment: index.html added

test case - run in IE to get nasty message box, or Firefox+Firebug to get console error

comment:1 Changed 14 years ago by Scott González

Milestone: TBD1.7
Resolution: fixed
Status: newclosed

This should be fixed for 1.7 from a previous change. As a side note, using jQuery 1.3 with jQuery UI 1.5 won't work.

Note: See TracTickets for help on using tickets.