diff --git a/editor/js/History.js b/editor/js/History.js index c2ca6f80ae0b88066d636b5f81ebaea1cc62d798..2c4392984066cdafceb077e015f2f8a38982d01a 100644 --- a/editor/js/History.js +++ b/editor/js/History.js @@ -204,7 +204,7 @@ History.prototype = { for ( var i = 0; i < json.undos.length; i ++ ) { var cmdJSON = json.undos[ i ]; - var cmd = new Commands[ cmdJSON.type ](); // creates a new object of type "json.type" + var cmd = new Commands[ cmdJSON.type ]( this.editor ); // creates a new object of type "json.type" cmd.json = cmdJSON; cmd.id = cmdJSON.id; cmd.name = cmdJSON.name; @@ -216,7 +216,7 @@ History.prototype = { for ( var i = 0; i < json.redos.length; i ++ ) { var cmdJSON = json.redos[ i ]; - var cmd = new Commands[ cmdJSON.type ](); // creates a new object of type "json.type" + var cmd = new Commands[ cmdJSON.type ]( this.editor ); // creates a new object of type "json.type" cmd.json = cmdJSON; cmd.id = cmdJSON.id; cmd.name = cmdJSON.name;