Update index.js

This commit is contained in:
TheBrokenRail 2016-12-11 12:45:35 -05:00 committed by GitHub
parent 838608af86
commit 2ffb17458d

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();