Skip to content

listenTo change in behavior, 1.2.0? #3611

@bazineta

Description

@bazineta

Using the 1.1.2 release, listenTo() was able to listen for events from objects that provide the typical on() interface; in our case, an Ace editor session, which emits 'change' events, e.g., EditSession.on('change', function (e)). Under 1.1.2, we've used listenTo() to listen for these events from the editor session.

Using the 1.2.0 release, listenTo() does not appear to be able to listen for these events; they're emitted, and the editor session is present in the View's _listeningTo, but the callback is no longer fired.

We were using listenTo() for automatic cleanup of the listener function. Curious if this was never supposed to work in this manner, or if it's a bug. The changes to listening in 1.2.0 are quite extensive, so it's a bit difficult to see what might be the key difference for one unfamiliar with them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions