diff --git a/editor/docs/Implementing additional commands for undo-redo.md b/editor/docs/Implementing additional commands for undo-redo.md index 79920a5fdb8a8596302f2b265d8d06db3f14f24c..206bcffafaed1962ac233bedec2042ea4eec1c7b 100644 --- a/editor/docs/Implementing additional commands for undo-redo.md +++ b/editor/docs/Implementing additional commands for undo-redo.md @@ -26,12 +26,12 @@ Every command needs a constructor. In the constructor ```javascript -DoSomethingCommand = function () { +var DoSomethingCommand = function () { Command.call( this ); // Required: Call default constructor this.type = 'DoSomethingCommand'; // Required: has to match the object-name! - this.name = 'Set/Do/Update DoSomething'; // Required: description of the command, used in Sidebar.History + this.name = 'Set/Do/Update Something'; // Required: description of the command, used in Sidebar.History // TODO: store all the relevant information needed to // restore the old and the new state diff --git a/editor/docs/Writing unit tests for undo-redo commands.md b/editor/docs/Writing unit tests for undo-redo commands.md index d74719573477eb1f74d9e4c745243c47f67bdbaa..cfd44896778a5e82f2da3c6d576b2bfe1c08285c 100644 --- a/editor/docs/Writing unit tests for undo-redo commands.md +++ b/editor/docs/Writing unit tests for undo-redo commands.md @@ -26,9 +26,9 @@ Within the file, go to the `` and include the new ```html // //... - - // add this line - + + // add this line + //... ``` diff --git a/editor/js/Command.js b/editor/js/Command.js index e75fdfa8e2f9bbd999d06c0dc5ee7c209f813379..cb9c86c63e5a45cf2c1c145ebfdbbce923570db4 100755 --- a/editor/js/Command.js +++ b/editor/js/Command.js @@ -9,7 +9,7 @@ * @constructor */ -Command = function ( editorRef ) { +var Command = function ( editorRef ) { this.id = - 1; this.inMemory = false; diff --git a/editor/js/commands/AddObjectCommand.js b/editor/js/commands/AddObjectCommand.js index 95ab8ffbbd220b5125827ab015470bcafb4cb1d1..62c2e8710c2fe0640f9de6a6ec253257fb0d9c88 100755 --- a/editor/js/commands/AddObjectCommand.js +++ b/editor/js/commands/AddObjectCommand.js @@ -8,7 +8,7 @@ * @constructor */ -AddObjectCommand = function ( object ) { +var AddObjectCommand = function ( object ) { Command.call( this ); diff --git a/editor/js/commands/AddScriptCommand.js b/editor/js/commands/AddScriptCommand.js index 8e8acfebe086f80fef9d31657f2575e25b894a4b..75dd5408b3d259298f400292290135c58fc2ed66 100755 --- a/editor/js/commands/AddScriptCommand.js +++ b/editor/js/commands/AddScriptCommand.js @@ -9,7 +9,7 @@ * @constructor */ -AddScriptCommand = function ( object, script ) { +var AddScriptCommand = function ( object, script ) { Command.call( this ); diff --git a/editor/js/commands/MoveObjectCommand.js b/editor/js/commands/MoveObjectCommand.js index 1dc6773a68c80243a86957510ee9025da1e4f3c4..13baa13add0a2eb187bb852dc92e1fe34d3361d8 100755 --- a/editor/js/commands/MoveObjectCommand.js +++ b/editor/js/commands/MoveObjectCommand.js @@ -10,7 +10,7 @@ * @constructor */ -MoveObjectCommand = function ( object, newParent, newBefore ) { +var MoveObjectCommand = function ( object, newParent, newBefore ) { Command.call( this ); diff --git a/editor/js/commands/MultiCmdsCommand.js b/editor/js/commands/MultiCmdsCommand.js index 8c0ec7e2487bd227664460aeae84fb36d3598a62..91bc7b41e2deb4852f818e5818b7bdf9e864c4b5 100755 --- a/editor/js/commands/MultiCmdsCommand.js +++ b/editor/js/commands/MultiCmdsCommand.js @@ -8,7 +8,7 @@ * @constructor */ -MultiCmdsCommand = function ( cmdArray ) { +var MultiCmdsCommand = function ( cmdArray ) { Command.call( this ); diff --git a/editor/js/commands/RemoveObjectCommand.js b/editor/js/commands/RemoveObjectCommand.js index 1deca3676006fc0ccffacbafe953671a92b53312..4bcca562f91aca17d1dfba53e2c15e2c433c8155 100755 --- a/editor/js/commands/RemoveObjectCommand.js +++ b/editor/js/commands/RemoveObjectCommand.js @@ -8,7 +8,7 @@ * @constructor */ -RemoveObjectCommand = function ( object ) { +var RemoveObjectCommand = function ( object ) { Command.call( this ); diff --git a/editor/js/commands/RemoveScriptCommand.js b/editor/js/commands/RemoveScriptCommand.js index 5f637163e5737a1b57a9b8256f14ef76358ff554..164718517d07bfc318005a83494a0d034be12fe1 100755 --- a/editor/js/commands/RemoveScriptCommand.js +++ b/editor/js/commands/RemoveScriptCommand.js @@ -9,7 +9,7 @@ * @constructor */ -RemoveScriptCommand = function ( object, script ) { +var RemoveScriptCommand = function ( object, script ) { Command.call( this ); diff --git a/editor/js/commands/SetColorCommand.js b/editor/js/commands/SetColorCommand.js index 1e7b64b753101c8b2ecf873e80596ded173c2466..c9241bb575f14a3ded09643cf585ea05a2e20e91 100755 --- a/editor/js/commands/SetColorCommand.js +++ b/editor/js/commands/SetColorCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetColorCommand = function ( object, attributeName, newValue ) { +var SetColorCommand = function ( object, attributeName, newValue ) { Command.call( this ); diff --git a/editor/js/commands/SetGeometryCommand.js b/editor/js/commands/SetGeometryCommand.js index 736d1c98f09ae8ccd74f8e7cfb2c1561bb057ea1..51f1bff98e1a53ab2c8a04d76cd9d722c21426bc 100755 --- a/editor/js/commands/SetGeometryCommand.js +++ b/editor/js/commands/SetGeometryCommand.js @@ -9,7 +9,7 @@ * @constructor */ -SetGeometryCommand = function ( object, newGeometry ) { +var SetGeometryCommand = function ( object, newGeometry ) { Command.call( this ); diff --git a/editor/js/commands/SetGeometryValueCommand.js b/editor/js/commands/SetGeometryValueCommand.js index ae2e3c8416e58eb6924e14ae7bab59de1b5abcbc..ba305c519f2603971537b9234643659d0974e341 100755 --- a/editor/js/commands/SetGeometryValueCommand.js +++ b/editor/js/commands/SetGeometryValueCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetGeometryValueCommand = function ( object, attributeName, newValue ) { +var SetGeometryValueCommand = function ( object, attributeName, newValue ) { Command.call( this ); diff --git a/editor/js/commands/SetMaterialColorCommand.js b/editor/js/commands/SetMaterialColorCommand.js index 007d936ae21d38e09640274cd714451473576c57..4cda80f437e82e4101229918a4388835d701d4f2 100755 --- a/editor/js/commands/SetMaterialColorCommand.js +++ b/editor/js/commands/SetMaterialColorCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetMaterialColorCommand = function ( object, attributeName, newValue ) { +var SetMaterialColorCommand = function ( object, attributeName, newValue ) { Command.call( this ); diff --git a/editor/js/commands/SetMaterialCommand.js b/editor/js/commands/SetMaterialCommand.js index b354197084d891f53b9dcbb62eb639240b4e54f2..a78e4b0e07a2aedd55d287329b28b8bdec7206c9 100755 --- a/editor/js/commands/SetMaterialCommand.js +++ b/editor/js/commands/SetMaterialCommand.js @@ -9,7 +9,7 @@ * @constructor */ -SetMaterialCommand = function ( object, newMaterial ) { +var SetMaterialCommand = function ( object, newMaterial ) { Command.call( this ); diff --git a/editor/js/commands/SetMaterialMapCommand.js b/editor/js/commands/SetMaterialMapCommand.js index c77060b8dcfc4eac201c1b780d11c7cc8628318e..08a00d85dc0abef8de037911e0c0c6c7d8864a66 100755 --- a/editor/js/commands/SetMaterialMapCommand.js +++ b/editor/js/commands/SetMaterialMapCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetMaterialMapCommand = function ( object, mapName, newMap ) { +var SetMaterialMapCommand = function ( object, mapName, newMap ) { Command.call( this ); this.type = 'SetMaterialMapCommand'; diff --git a/editor/js/commands/SetMaterialValueCommand.js b/editor/js/commands/SetMaterialValueCommand.js index 375e2b79ed96594d8036270ed4308f7f9761314c..6cf27c4ee0bd0d690f469bd2425c5acf1c1eeb18 100755 --- a/editor/js/commands/SetMaterialValueCommand.js +++ b/editor/js/commands/SetMaterialValueCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetMaterialValueCommand = function ( object, attributeName, newValue ) { +var SetMaterialValueCommand = function ( object, attributeName, newValue ) { Command.call( this ); diff --git a/editor/js/commands/SetPositionCommand.js b/editor/js/commands/SetPositionCommand.js index cca4a7fb75ad53b943df55def8f74971af8cd38e..e0fa8996a68b1e719b6274edff2a62cf87a0a153 100755 --- a/editor/js/commands/SetPositionCommand.js +++ b/editor/js/commands/SetPositionCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetPositionCommand = function ( object, newPosition, optionalOldPosition ) { +var SetPositionCommand = function ( object, newPosition, optionalOldPosition ) { Command.call( this ); diff --git a/editor/js/commands/SetRotationCommand.js b/editor/js/commands/SetRotationCommand.js index 1f84ff4070a8546e4c876970ba0d4015afaeb353..7de055ac018cfa3054eea596fbf238183e268665 100755 --- a/editor/js/commands/SetRotationCommand.js +++ b/editor/js/commands/SetRotationCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetRotationCommand = function ( object, newRotation, optionalOldRotation ) { +var SetRotationCommand = function ( object, newRotation, optionalOldRotation ) { Command.call( this ); diff --git a/editor/js/commands/SetScaleCommand.js b/editor/js/commands/SetScaleCommand.js index 55850bea4d114f87c9a5d08ae58a36e6f5f116ee..51d7e53b1ad31d791dbb76ce248c8dbd175fc620 100755 --- a/editor/js/commands/SetScaleCommand.js +++ b/editor/js/commands/SetScaleCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetScaleCommand = function ( object, newScale, optionalOldScale ) { +var SetScaleCommand = function ( object, newScale, optionalOldScale ) { Command.call( this ); diff --git a/editor/js/commands/SetSceneCommand.js b/editor/js/commands/SetSceneCommand.js index 3b38ab9bcc7e88a30b3f449e09915942a8ee4d1c..4c2d38f3e84b83b873f8f50cdb80aa8f9ddab22f 100755 --- a/editor/js/commands/SetSceneCommand.js +++ b/editor/js/commands/SetSceneCommand.js @@ -8,7 +8,7 @@ * @constructor */ -SetSceneCommand = function ( scene ) { +var SetSceneCommand = function ( scene ) { Command.call( this ); diff --git a/editor/js/commands/SetScriptValueCommand.js b/editor/js/commands/SetScriptValueCommand.js index 5d06d445c7ed392fac60498add48ef11ee1e5513..e373d32ccacd979df0127f125aa1002fbab3b150 100755 --- a/editor/js/commands/SetScriptValueCommand.js +++ b/editor/js/commands/SetScriptValueCommand.js @@ -12,7 +12,7 @@ * @constructor */ -SetScriptValueCommand = function ( object, script, attributeName, newValue, cursorPosition ) { +var SetScriptValueCommand = function ( object, script, attributeName, newValue, cursorPosition ) { Command.call( this ); diff --git a/editor/js/commands/SetUuidCommand.js b/editor/js/commands/SetUuidCommand.js index 083bb0c4bfa02ebc136b604c37b891cdbd0b7d7f..51c98886ba060158fe5171eae6b569e60a1056ba 100755 --- a/editor/js/commands/SetUuidCommand.js +++ b/editor/js/commands/SetUuidCommand.js @@ -9,7 +9,7 @@ * @constructor */ -SetUuidCommand = function ( object, newUuid ) { +var SetUuidCommand = function ( object, newUuid ) { Command.call( this ); diff --git a/editor/js/commands/SetValueCommand.js b/editor/js/commands/SetValueCommand.js index 085b76ef0885588c573322a5befb43deacb99b72..41b4f45d4ac3990dff9edbf62b8cb90ff2a2a4d8 100755 --- a/editor/js/commands/SetValueCommand.js +++ b/editor/js/commands/SetValueCommand.js @@ -10,7 +10,7 @@ * @constructor */ -SetValueCommand = function ( object, attributeName, newValue ) { +var SetValueCommand = function ( object, attributeName, newValue ) { Command.call( this );