mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Update Names
This commit is contained in:
parent
34d2676db3
commit
f2a08b466d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue