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

add model.item in event Object #15

Merged
merged 1 commit into from Aug 15, 2016

Conversation

christophe-g
Copy link
Contributor

Because, sometime you want to process data on add or on remove;

 listeners: {
        'sortableTarget.end': 'onTargetEnd',
},
 onTargetEnd: function(e) {
        if (e.detail) {
          var item = e.detail.model.item;
          //process according to model.item
       }

@gutenye gutenye merged commit 5b7f08a into SortableJS:master Aug 15, 2016
@gutenye
Copy link
Contributor

gutenye commented Aug 15, 2016

thanks

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

Successfully merging this pull request may close these issues.

None yet

2 participants