Page MenuHomePhabricator

Merge Mantle event emitter and OO.EventEmitter
Closed, ResolvedPublic

Description

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

Details

Reference
bz67107

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).
Catrope created this task.Jun 26 2014, 12:35 AM

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

https://gerrit.wikimedia.org/r/129336

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

https://gerrit.wikimedia.org/r/129336