Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29977555: Issue 7202 - Add hasListeners method to EventEmitter (Closed)

Created:
Jan. 9, 2019, 2:49 p.m. by Manish Jethani
Modified:
Jan. 10, 2019, 9:35 p.m.
Reviewers:
hub
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Add hasListeners method #

Patch Set 3 : Optimize all methods #

Patch Set 4 : Add tests #

Total comments: 4

Patch Set 5 : Remove checks from on() and off() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -7 lines) Patch
M lib/events.js View 1 2 3 4 2 chunks +32 lines, -7 lines 0 comments Download
M test/filterNotifier.js View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9
Manish Jethani
Jan. 9, 2019, 2:49 p.m. (2019-01-09 14:49:34 UTC) #1
Manish Jethani
Patch Set 1
Jan. 9, 2019, 2:53 p.m. (2019-01-09 14:53:01 UTC) #2
Manish Jethani
Patch Set 2: Add hasListeners method Patch Set 3: Optimize all methods Patch Set 4: ...
Jan. 9, 2019, 5:04 p.m. (2019-01-09 17:04:37 UTC) #3
hub
https://codereview.adblockplus.org/29977555/diff/29977562/lib/events.js File lib/events.js (right): https://codereview.adblockplus.org/29977555/diff/29977562/lib/events.js#newcode38 lib/events.js:38: let listeners = this._listeners.size > 0 ? this._listeners.get(name) : ...
Jan. 9, 2019, 10:42 p.m. (2019-01-09 22:42:40 UTC) #4
Manish Jethani
https://codereview.adblockplus.org/29977555/diff/29977562/lib/events.js File lib/events.js (right): https://codereview.adblockplus.org/29977555/diff/29977562/lib/events.js#newcode38 lib/events.js:38: let listeners = this._listeners.size > 0 ? this._listeners.get(name) : ...
Jan. 9, 2019, 11:09 p.m. (2019-01-09 23:09:45 UTC) #5
Manish Jethani
https://codereview.adblockplus.org/29977555/diff/29977562/lib/events.js File lib/events.js (right): https://codereview.adblockplus.org/29977555/diff/29977562/lib/events.js#newcode38 lib/events.js:38: let listeners = this._listeners.size > 0 ? this._listeners.get(name) : ...
Jan. 9, 2019, 11:11 p.m. (2019-01-09 23:11:56 UTC) #6
Manish Jethani
https://codereview.adblockplus.org/29977555/diff/29977562/lib/events.js File lib/events.js (right): https://codereview.adblockplus.org/29977555/diff/29977562/lib/events.js#newcode38 lib/events.js:38: let listeners = this._listeners.size > 0 ? this._listeners.get(name) : ...
Jan. 10, 2019, 3:50 a.m. (2019-01-10 03:50:13 UTC) #7
Manish Jethani
Patch Set 5: Remove checks from on() and off()
Jan. 10, 2019, 4:01 a.m. (2019-01-10 04:01:43 UTC) #8
hub
Jan. 10, 2019, 6:07 p.m. (2019-01-10 18:07:10 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld