1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00
phorge-phorge/support/aphlict/server/lib
Joshua Spence 279a0e5371 Don't explicitly keep track of _activeListenerCount in the Aphlict server.
Summary: The `_activeListenerCount` variable is overkill, we should be able to achieve the same result using `Object.keys(this._listeners).length`.

Test Plan:
Mucked around in a NodeJS shell.

```lang=js
> Object.keys({}).length
0
> Object.keys({foo: 'bar'}).length
1
> Object.keys({1: 'foo', 2: 'bar'}).length
2
```

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9554
2014-06-16 05:20:00 +10:00
..
AphlictFlashPolicyServer.js Make the Aphlict server more resilient. 2014-06-11 10:17:12 -07:00
AphlictListener.js Modify the Aphlict server to transmit messages instead of broadcasting them. 2014-06-11 12:17:29 -07:00
AphlictListenerList.js Don't explicitly keep track of _activeListenerCount in the Aphlict server. 2014-06-16 05:20:00 +10:00
AphlictLog.js Make the Aphlict server more resilient. 2014-06-11 10:17:12 -07:00
javelin.js Make the Aphlict server more resilient. 2014-06-11 10:17:12 -07:00