Update Names

This commit is contained in:
TheBrokenRail 2016-12-02 16:03:52 -05:00 committed by GitHub
parent 34d2676db3
commit f2a08b466d

View file

@ -155,7 +155,7 @@ VirtualMachine.prototype.loadProject = function (json) {
this.runtime.setEditingTarget(this.editingTarget); this.runtime.setEditingTarget(this.editingTarget);
}; };
VirtualMachine.prototype.exportToJson = function () { VirtualMachine.prototype.toJSON = function () {
var obj = new Object(); var obj = new Object();
obj.sprites = this.runtime.targets; obj.sprites = this.runtime.targets;
obj.meta = new Object(); obj.meta = new Object();
@ -164,7 +164,7 @@ VirtualMachine.prototype.exportToJson = function () {
return JSON.stringify(obj, null, 2); return JSON.stringify(obj, null, 2);
}; };
VirtualMachine.prototype.importFromJson = function (json) { VirtualMachine.prototype.fromJSON = function (json) {
this.clear(); this.clear();
var obj = JSON.parse(json); var obj = JSON.parse(json);
var i = 0; var i = 0;