jshint fixes

This commit is contained in:
photonstorm 2014-07-09 11:36:45 +01:00
parent 494c33a9f4
commit 0ff2eb2fb9
2 changed files with 9 additions and 6 deletions

View file

@ -178,10 +178,7 @@ Phaser.Sprite = function (game, x, y, key, frame) {
* @property {Array} _cache
* @private
*/
this._cache = [ 0, 0, 0, 0, 1,
0, 1, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0 ];
this._cache = [ 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];
/**
* @property {Phaser.Rectangle} _bounds - Internal cache var.

View file

@ -308,13 +308,19 @@ Phaser.Utils = {
*/
mixin: function (from, to) {
if (!from || typeof (from) !== "object") return to;
if (!from || typeof (from) !== "object")
{
return to;
}
for (var key in from)
{
var o = from[key];
if (o.childNodes || o.cloneNode) continue;
if (o.childNodes || o.cloneNode)
{
continue;
}
var type = typeof (from[key]);