Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sortable: Marginal event descriptions #166

Open
Klap-in opened this issue Sep 2, 2013 · 0 comments
Open

Sortable: Marginal event descriptions #166

Klap-in opened this issue Sep 2, 2013 · 0 comments

Comments

@Klap-in
Copy link

Klap-in commented Sep 2, 2013

When i was applying draggable and sortable i discover a difference between the ui.item that is given to the beforeStop and the receive event.

For both the api description is:
"The jQuery object representing the current dragged element."

http://api.jqueryui.com/sortable/#event-receive
http://api.jqueryui.com/sortable/#event-beforeStop

but when i modify ui.item in the receive callback the origin dragged item is modified, but not the dropped item. While i modify the ui.item in the beforeStop event the dropped item changes and not the origin (i my case the lastest was desired).

Is it possible to describe in the documentation bit more elaborated what the ui object is? or what the context is of the callback event.
With this information the differences between the events become more clear imho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant