mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 23:24:41 +00:00
Merge pull request #413 from Fishrock123/1.2-return-type
Strict type return (boolean) for `Sprite.exists` getter.
This commit is contained in:
commit
ec4eab07a7
1 changed files with 1 additions and 2 deletions
|
@ -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];
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue