HotDrink / hotdrink

JavaScript MVVM library with support for multi-way dependencies and generic, rich UI behaviors.
http://hotdrink.github.io/hotdrink/
58 stars 9 forks source link

Choose event listener parameters #21

Open thejohnfreeman opened 12 years ago

thejohnfreeman commented 12 years ago

Listeners subscribe to events on views and variables throughout the library. In some places, a different listener is created for each subscription because of some parameter unique to that subscription. This issue is two-fold:

  1. Find the locations where each subscription gets a different listener.
  2. Try to share a listener among those subscriptions by passing parameters to the listener upon publication of the event.