From 1980fbc98d22f8a85ca19015ab8daa751531c549 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Tue, 29 Nov 2016 18:53:38 -0500 Subject: [PATCH] Update rendered-target.js --- src/sprites/rendered-target.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index 57eab25b0..cd2fe42d7 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -66,12 +66,13 @@ RenderedTarget.prototype.initDrawable = function () { RenderedTarget.prototype.export = function () { var result = new Object(); - var notSaved = ["renderer","effects","sprite","drawableID","runtime"]; + var notSaved = ['renderer', 'effects', 'sprite', 'drawableID', 'runtime']; + var x = null; for (x in this) { - if (typeof(this[x]) === "function") { + if (typeof this[x] === 'function') { continue; } - if (notSaved.indexOf(x) == -1) { + if (notSaved.indexOf(x) === -1) { result[x] = this[x]; } }