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

Event not passed to onAdd #236

Closed
etcook opened this issue Jan 23, 2015 · 2 comments
Closed

Event not passed to onAdd #236

etcook opened this issue Jan 23, 2015 · 2 comments

Comments

@etcook
Copy link
Contributor

etcook commented Jan 23, 2015

Per the docs, I'm trying to access the newIndex, etc from within onAdd, but it doesn't seem like the event is passed. Rather, in its place, I'm receiving the model object.

2015-01-23 at 12 17 am

            onAdd: function (evt) {
                console.log(evt);
            },

I'm using this within an AngularJS app.

@allenwyma
Copy link

etcook is correct:

    onAdd: function (/**Event*/evt) {
                            _sync(evt);
                            options.onAdd(source.items(), removed);
                        },

It seems you cannot edit this. It's passing in different items. Can we fix this?

RubaXa added a commit that referenced this issue Feb 9, 2015
@RubaXa RubaXa closed this as completed Jun 8, 2015
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

No branches or pull requests

3 participants