consistent return type with aliased method (#4418)
Evented.listens() returns a boolean, so hasEventListeners() will as well
This commit is contained in:
parent
095003ac2a
commit
67c1370404
@ -290,7 +290,7 @@ proto.addOneTimeEventListener = proto.once;
|
||||
// Alias to [`fire(…)`](#evented-fire)
|
||||
proto.fireEvent = proto.fire;
|
||||
|
||||
// @method hasEventListeners(…): this
|
||||
// @method hasEventListeners(…): Boolean
|
||||
// Alias to [`listens(…)`](#evented-listens)
|
||||
proto.hasEventListeners = proto.listens;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user