mirror of
https://github.com/wassname/phaser.git
synced 2026-10-08 12:19:14 +08:00
Strict type return (boolean) for Sprite.exists getter.
This commit is contained in:
1 parent
5bbb7e390b
commit
19c5b7c22c
1 file changed
+1
-2
@@ -872,8 +872,7 @@ Object.defineProperty(Phaser.Sprite.prototype, "exists", {
|
||||
|
||||
get: function () {
|
||||
|
||||
// hmm, type co-ercing? safe?
|
||||
return this._cache[6];
|
||||
return !!this._cache[6];
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user