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

'selected' event not always passing through the model #21

Open
ronaldcurtis opened this issue Dec 3, 2013 · 0 comments
Open

'selected' event not always passing through the model #21

ronaldcurtis opened this issue Dec 3, 2013 · 0 comments

Comments

@ronaldcurtis
Copy link

Hi Derick,

I've currently implemented backbone.picky in a marionette project and overall it's working great. However I have noticed multiple instances in which the 'selected' event is not passing through a model. I can easily get around this by checking if the model is first defined, but it would be nice if the event ALWAYS passes the selected model through.

Eg:

initialize: ->
  this.listenTo this.collection, 'selected', (selectedModel) ->
    console.log selectedModel // sometimes undefined
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

1 participant