Page MenuHomePhabricator

Merge Mantle event emitter and OO.EventEmitter
Closed, ResolvedPublic


Right now, Mantle's event emitter is just a wrapper around jQuery, and its API is an exact subset of OO.EventEmitter's API (apart from the naming of .one() vs .once()). I wrote some ugly code that replaces Mantle's EventEmitter with OO's, and the tests still run.

It would be nice if we could have Mantle use OO.EventEmitter, but this isn't entirely trivial to rig up because OOjs's and Mantle's OO models are different.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:40 AM
bzimport set Reference to bz67107.
bzimport added a subscriber: Unknown Object (MLST).

Change 129336 had a related patch set uploaded by Jdlrobson:
Use Mantle version of Class, eventemitter and View

Change 129336 merged by jenkins-bot:
Use Mantle version of Class, eventemitter and View