0

I make the 'el' element dragable with mootools:

new Drag(el, {x1:""});//the old drag binding

Now,I want to remove the old drag binding,and then create a new drag instead.

//update the el's drag binding
new Drag(el, {x2:""});//the new drag binding

But I have no proper idea to remove the old drag binding

thanks!

4

1 回答 1

1

You want to use the detach method.

Read more about how to use it at http://mootools.net/docs/more/Drag/Drag#Drag:detach

于 2013-07-03T15:09:23.547 回答