[Proto-Scripty] Re: Sortable onUpdate firing at the wrong time

2009-08-15 Thread JoJo
I think I figured it out. The callback must not have parentheses. FAIL:onUpdate: someFunction(); GOOD: onUpdate: someFunction; I have no idea why. I am a beginner to JS. On Aug 15, 11:17 pm, Mojito wrote: > Why is the onUpdate callback fired right when the Sortable is created > and not wh

[Proto-Scripty] Sortable onUpdate firing at the wrong time

2009-08-15 Thread Mojito
Why is the onUpdate callback fired right when the Sortable is created and not when I move an ? This code also screws up my dropping - I am forced to click again to drop. Additionally, after dragging an , it remains translucent even after dropping it. Sortable.create( 'lineup', {

[Proto-Scripty] Calling method from another method

2009-08-15 Thread Mojito
I'm a complete noob to Prototype and don't know how to call a method from another method. I'm using the [URL="http://www.prototypejs.org/learn/class- inheritance"]Prototype JS library[/URL] to make classes. var myClass = Class.create({ initialize: function() { t