consistent return type with aliased method (#4418)

Evented.listens() returns a boolean, so hasEventListeners() will as well
This commit is contained in:
Nathan Cahill 2016-04-14 00:52:25 -06:00 committed by Yohan Boniface
parent 095003ac2a
commit 67c1370404

View File

@ -290,7 +290,7 @@ proto.addOneTimeEventListener = proto.once;
// Alias to [`fire(…)`](#evented-fire) // Alias to [`fire(…)`](#evented-fire)
proto.fireEvent = proto.fire; proto.fireEvent = proto.fire;
// @method hasEventListeners(…): this // @method hasEventListeners(…): Boolean
// Alias to [`listens(…)`](#evented-listens) // Alias to [`listens(…)`](#evented-listens)
proto.hasEventListeners = proto.listens; proto.hasEventListeners = proto.listens;