Skip to content

Commit 19c5b7c

Browse files
committed
Strict type return (boolean) for Sprite.exists getter.
1 parent 5bbb7e3 commit 19c5b7c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/gameobjects/Sprite.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,7 @@ Object.defineProperty(Phaser.Sprite.prototype, "exists", {
872872

873873
get: function () {
874874

875-
// hmm, type co-ercing? safe?
876-
return this._cache[6];
875+
return !!this._cache[6];
877876

878877
},
879878

0 commit comments

Comments
 (0)