This project is archived and is in readonly mode.

#419 ✓resolved
pmcb55

Bug in 'Dynamic.Sortables' sample code

Reported by pmcb55 | October 19th, 2010 @ 10:57 PM | in 1.3.1.1

I'm a very experienced programmer, but I'm new to JavaScript and was
using the MooTools samples as my introduction. Unfortunately I choose
the 'Dynamic.Sortables' sample as my starting point, and it took me a
very frustrating amount of time to discover what I think is a typo in
the sample code.

Quite simply the typo is in the instantiation of the 'Sortables()'
object - the reference to the 'todo' element in the HTML should be using
the '#' selector instead of the '.' selector (or else the HTML needs to
be updated to specify

    instead of the current <ol
    id="todo">). This typo means that the 'data' element is never
    populated with the sorted list of tasks (which was the cause of my
    ongoing frustration!).

    So I think the sample needs a tiny update, or maybe someone can explain
    why I'm mistaken.

    Pat.

    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

    Pages