mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
jshint fixes
This commit is contained in:
parent
494c33a9f4
commit
0ff2eb2fb9
2 changed files with 9 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue