[Proto-Scripty] Re: draggable onEnd calling function

2009-05-07 Thread ColinFine
Alex has given you the solution, but I thought I'd explain it. var options = { onEnd: cool()} means "Run cool(), and whatever the result is, assign that to the property onEnd" var options = { onEnd: cool} means "Assign the object cool (which happens to be a function) to the property onEnd" If

[Proto-Scripty] Re: draggable onEnd calling function

2009-05-06 Thread Alex McAuley
try this new Draggable(newElement,{ handle: 'thehandleID', starteffect: function() { // some function }, endeffect : function () { // some function