refactor(EventEmitter): rename .next() to .emit()

BREAKING CHANGE:

EventEmitter#next(value) is deprecated, use EventEmitter#emit(value)
instead.

Closes #4287

Closes #5302
This commit is contained in:
Rob Wormald
2015-11-15 23:58:59 -08:00
parent 929abb9aa3
commit 3fa287aae2
44 changed files with 103 additions and 78 deletions

View File

@ -66,5 +66,5 @@ export class QueryList<T> {
reset(res: T[]): void { this._results = res; }
/** @internal */
notifyOnChanges(): void { this._emitter.next(this); }
notifyOnChanges(): void { this._emitter.emit(this); }
}