Merge pull request #413 from Fishrock123/1.2-return-type

Strict type return (boolean) for `Sprite.exists` getter.
This commit is contained in:
Richard Davey 2014-02-13 23:29:08 +00:00
commit ec4eab07a7

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