This project is archived and is in readonly mode.

#539 ✓resolved
Remko Nolten

Small bug in Drag/Slider.js::detach()

Reported by Remko Nolten | March 14th, 2011 @ 10:30 AM | in 1.3.2.1

I noticed a small bug in Slider.js in the detach function:

this.element.removeEvent('mousedown', this.clickedElement)
    .element.removeEvent('mousewheel', this.scrolledElement);
this.drag.detach();
return this;

It should be:

this.element.removeEvent('mousedown', this.clickedElement)
            .removeEvent('mousewheel', this.scrolledElement);
this.drag.detach();
return this;

In other words: the second '.element' generates an error since the removeEvent function already returns the correct element.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket

Pages