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
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', {
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