This project is archived and is in readonly mode.

#1200 ✓invalid

Error in More Slider

Reported by LeDavid | March 18th, 2011 @ 06:12 PM


When I try to use the Slider class by downloading it from the MooTools More Builder, I've got an error in this particular line:

if(this.options.wheel){this.element.addEvent("mousewheel",this.scrolledElement);}this.drag.attach();return this;},detach:function(){this.element.removeEvent("mousedown",this.clickedElement).element.removeEvent("mousewheel",this.scrolledElement);

The error message is: this.element.removeEvent("mousedown", this.clickedElement).element is undefined

I modify the line in this way:

if(this.options.wheel){this.element.addEvent("mousewheel",this.scrolledElement);}this.drag.attach();return this;},detach:function(){this.element.removeEvent("mousedown",this.clickedElement).removeEvent("mousewheel",this.scrolledElement);

It seems to work but I'm not quite sure.

Thanks for your support.


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 »

Shared Ticket Bins

People watching this ticket