Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#15147 closed defect (bug) (fixed)

jQuery 1.4.3 breaks Prototype 1.6.1

Reported by: neoxx's profile neoxx Owned by: filosofo's profile filosofo
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: JavaScript Keywords: has-patch
Focuses: Cc:

Description

Hi,

According to my tests, the recent update of jQuery (#15135) breaks Prototype if both libraries are included at the same time (which they are if Prototype is used in the back-end, especially with the new admin bar).

Just try:

wp_enqueue_script('prototype');
wp_enqueue_script('jquery');

I get a element.dispatchEvent is not a function in Firebug which has been fired from the call
element.dispatchEvent(event); in line 4619 of prototype.js.

Reverting to the jQuery 1.4.2 directory of WordPress 3.0.1 solves the problem...

Can anybody confirm this?

Cheers,
Berny

Attachments (1)

no-conflict.15147.diff (2.1 KB) - added by filosofo 13 years ago.

Download all attachments as: .zip

Change History (3)

#1 @filosofo
13 years ago

  • Keywords has-patch added; jquery prototype javascript removed
  • Milestone changed from Awaiting Review to 3.1
  • Owner set to filosofo
  • Status changed from new to assigned

Patch should fix: missing no-conflict.

#2 @automattor
13 years ago

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

(In [15840]) Restore jQ noConflict. props filosofo, fixes #15147.

Note: See TracTickets for help on using tickets.