Update index.js

This commit is contained in:
TheBrokenRail authored and GitHub committed 2016-12-11 12:45:35 -05:00
1 parent 838608af86
commit 2ffb17458d
1 file changed
+3
+3
View File
@@ -166,6 +166,9 @@ VirtualMachine.prototype.toPrettyJSON = function (testing) {
};
VirtualMachine.prototype.toJSON = function () {
if (this.runtime.targets.hasOwnProperty('testing') == false) {
this.runtime.targets.testing = false;
}
var obj = new Object();
obj.sprites = this.runtime.targets;
obj.meta = new Object();