On Sun, Dec 7, 2008 at 3:22 PM, DAZ <[EMAIL PROTECTED]> wrote:

>
> The function that is called on the drop is likely to get very complex,
> so I'd like it in a separate function.
>
> However, my solution below doesn't work:
>
>  $("#dropper").droppable({
>  accept: "#dragger",
>  drop: dropped()
> });


change

drop: dropped()

to

drop: dropped

With the parens its executed as it's parsed and the return value is passed
as the value of drop, where you want to pass the name of the function so it
can be called by the plugin at the appropriate time, as many times as
needed.

- Richard

Reply via email to