mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
Merge pull request #413 from Fishrock123/1.2-return-type
Strict type return (boolean) for `Sprite.exists` getter.
This commit is contained in:
@@ -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