Skip to content

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

@ronaldcurtis

Description

@ronaldcurtis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions