twolfson / google-music.js

Browser-side JS library for controlling Google Music
The Unlicense
47 stars 6 forks source link

Move from defining hooks on an object to `on/off` handlers #5

Closed twolfson closed 9 years ago

twolfson commented 9 years ago

Defining a hook as a function is inefficient for binding multiple listeners as not everyone is aware of other listeners. Moving to a pub/sub model would fit much better and can be done via EventEmitter.

twolfson commented 9 years ago

Repaired in 2.0.3