Strict type return (boolean) for Sprite.exists getter.

This commit is contained in:
Fishrock123 2014-02-13 11:05:19 -05:00
parent 5bbb7e390b
commit 19c5b7c22c

View file

@ -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];
},