From f2a08b466d56cb4da4ad3467a8417d86d9ce9032 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Fri, 2 Dec 2016 16:03:52 -0500 Subject: [PATCH] Update Names --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 149f06798..4e6878e07 100644 --- a/src/index.js +++ b/src/index.js @@ -155,7 +155,7 @@ VirtualMachine.prototype.loadProject = function (json) { this.runtime.setEditingTarget(this.editingTarget); }; -VirtualMachine.prototype.exportToJson = function () { +VirtualMachine.prototype.toJSON = function () { var obj = new Object(); obj.sprites = this.runtime.targets; obj.meta = new Object(); @@ -164,7 +164,7 @@ VirtualMachine.prototype.exportToJson = function () { return JSON.stringify(obj, null, 2); }; -VirtualMachine.prototype.importFromJson = function (json) { +VirtualMachine.prototype.fromJSON = function (json) { this.clear(); var obj = JSON.parse(json); var i = 0;