Skip to content

Conversation

@jbboehr
Copy link
Contributor

@jbboehr jbboehr commented Apr 4, 2017

I've merged master into #3615. Any reason it was never merged before?

jridgewell and others added 4 commits May 18, 2015 14:20
This uses a private `listening` var to share state between a Backbone
"listener" and "listenee", instead of using a private `internalOn()` to
share state. This allows `#listenTo` to use the public `#on` method and
keeps interop between Backbone and any other event library.
A more descriptive name for what the property signifies.
@megawac
Copy link
Collaborator

megawac commented Apr 8, 2017

/cc @jridgewell

@jbboehr
Copy link
Contributor Author

jbboehr commented Apr 8, 2017

I'm gluing together a sockjs client and a cross-tab communication library, but without this patch, listenTo won't unregister the events because it mutates the object instead of calling the off method which I've hooked into, see https://static.vid.me/js/bus.js

@megawac megawac merged commit 539c9af into jashkenas:master Apr 9, 2017
@megawac megawac mentioned this pull request Apr 9, 2017
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

Successfully merging this pull request may close these issues.

3 participants