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

2009-08-18 Thread ColinFine
On Aug 16, 7:50 am, JoJo tokyot...@gmail.com wrote: 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. Because onUpdate: someFunction() means Call 'someFunction'

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

2009-08-16 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 tokyot...@gmail.com wrote: Why is the onUpdate callback fired right when the Sortable is

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

2009-08-16 Thread Alex McAuley
prototype-scriptaculous@googlegroups.com Sent: Sunday, August 16, 2009 7:50 AM Subject: [Proto-Scripty] Re: Sortable onUpdate firing at the wrong time I think I figured it out. The callback must not have parentheses. FAIL:onUpdate: someFunction(); GOOD: onUpdate: someFunction; I have no idea