AmpersandJS / ampersand-filtered-subcollection

Filterable, sortable, proxy of a collection that behaves like a collection.
MIT License
11 stars 7 forks source link

Comparator property change event is not bubbled #22

Closed herkyl closed 9 years ago

herkyl commented 9 years ago

Listening to a change event of the property that is also a comparator does not work. Example code in CoffeeScript:

active = new FilteredSubcollection collection,
  where: active: true
  comparator: 'position'
this.listenTo active, 'change:position', -> console.log 'change:position' # <- is never called

I'm not sure if this is intended or not. If this is a bug I'd be happy to supply a pull request.

wraithgar commented 9 years ago

Definitely not intended.