This project is archived and is in readonly mode.

#636 ✓invalid

Slider error when doing incremental operator to advance/decrement step

Reported by csuwldcat | April 13th, 2009 @ 03:27 PM

This is the third time I ran into this problem. Mootool's own demo shows something along the lines of thisSlider.set(thisSlider.step++). Every time I have tried the incremental op in real coding the step fails to advance or decrement but throws no errors. Event weirder, if I log the incremental operation of the var on the line directly before stepping it, it works...strange. It does work fine like this - thisSlider.set(thisSlider.step + 1) - every time without any fiddling.

Comments and changes to this ticket

  • fakedarren

    fakedarren February 8th, 2010 @ 05:33 PM

    • State changed from “new” to “open”
    • Assigned user changed from “David Walsh” to “fakedarren”
    • Milestone cleared.

    Daniel, as before, if you can now provide a mooshell it would be great. But will look into it.

  • fakedarren

    fakedarren February 13th, 2010 @ 02:17 PM

    • State changed from “open” to “invalid”

    Going to close this because the original issue is invalid. Whilst I am not going to open a ticket consider it a given that David and I will improve the demos for the next site.

    Basically the ++ operator first references the variable then increments it. If you wish to increment the slider in this way you would have to do


    Which increments prior to reference.

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