Opened 8 years ago

Closed 4 years ago

#4168 closed bug (wontfix)

Event name collision with mootools

Reported by: ntoniazzi Owned by:
Priority: major Milestone: 1.11.0
Component: ui.slider Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:


When integrating jquery+ui (in noConflict mode) with mootools (not a choice), both libraries answer to the "slide" event, and unfortunately, mootools shoots first.

  • Mootools: Fx.Slide, "slide" method
  • jQuery-ui: ui.slider, "slide" callback

Shouldn't namespaced events prevent this kind of collision? By adding 'ui' or 'jquery-ui' somewhere?

Change History (9)

comment:1 Changed 8 years ago by rdworth

Milestone: 1.71.8

comment:2 Changed 8 years ago by kungfu71186

anyway to fix this?

comment:3 Changed 8 years ago by ntoniazzi

A workaround is to remove any previous "slide" method before calling the plugin :


But it's only a workaround.

comment:4 Changed 7 years ago by amsys

confirming this problem, the workaround resolved the issue for me, thanks

comment:5 Changed 6 years ago by dostrog

Until ticket is opened, I've change name 'slide' in lib. Some details in my answer on stackoverflow:

It's work on my joomla 1.6 based site with mootools and jquery-ui enabled

comment:6 Changed 5 years ago by cameronbot

The workaround in commet 3 by ntoniazzi did not work for me, however I found this answer on stackoverflow with another workaround which worked:

jQuery('div.slider')[0].slide = null;

comment:7 Changed 5 years ago by Scott González


comment:8 Changed 5 years ago by tj.vantoll

Status: newopen

We are planning on switching to firing "widget:event" (for example "slider.slide") to avoid naming collisions with native events.

In the meantime you can switch the prefix the slider plugin uses as a workaround -

comment:9 Changed 4 years ago by Scott González

Resolution: wontfix
Status: openclosed

I'm not sure what Mootools is doing, or if this is still a problem, but I'm guessing that this falls into the Object.prototype-ish bucket.

Note: See TracTickets for help on using tickets.