Skip to content

Commit

Permalink
Minor adjustments in editor/docs markdowns
Browse files Browse the repository at this point in the history
Added "var " before function expressions
  • Loading branch information
lxxxvi committed Oct 22, 2015
1 parent 0810617 commit ec53b8e
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions editor/docs/Implementing additional commands for undo-redo.md
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions editor/docs/Writing unit tests for undo-redo commands.md
Expand Up @@ -26,9 +26,9 @@ Within the file, go to the `<!-- command object classes -->` and include the new
```html
// <!-- command object classes -->
//...
<script src="../../editor/js/AddScriptCommand.js"></script>
<script src="../../editor/js/DoSomethingCommand.js"></script> // add this line
<script src="../../editor/js/MoveObjectCommand.js"></script>
<script src="../../editor/js/commands/AddScriptCommand.js"></script>
<script src="../../editor/js/commands/DoSomethingCommand.js"></script> // add this line
<script src="../../editor/js/commands/MoveObjectCommand.js"></script>
//...
```

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Command.js
Expand Up @@ -9,7 +9,7 @@
* @constructor
*/

Command = function ( editorRef ) {
var Command = function ( editorRef ) {

this.id = - 1;
this.inMemory = false;
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/AddObjectCommand.js
Expand Up @@ -8,7 +8,7 @@
* @constructor
*/

AddObjectCommand = function ( object ) {
var AddObjectCommand = function ( object ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/AddScriptCommand.js
Expand Up @@ -9,7 +9,7 @@
* @constructor
*/

AddScriptCommand = function ( object, script ) {
var AddScriptCommand = function ( object, script ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/MoveObjectCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

MoveObjectCommand = function ( object, newParent, newBefore ) {
var MoveObjectCommand = function ( object, newParent, newBefore ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/MultiCmdsCommand.js
Expand Up @@ -8,7 +8,7 @@
* @constructor
*/

MultiCmdsCommand = function ( cmdArray ) {
var MultiCmdsCommand = function ( cmdArray ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/RemoveObjectCommand.js
Expand Up @@ -8,7 +8,7 @@
* @constructor
*/

RemoveObjectCommand = function ( object ) {
var RemoveObjectCommand = function ( object ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/RemoveScriptCommand.js
Expand Up @@ -9,7 +9,7 @@
* @constructor
*/

RemoveScriptCommand = function ( object, script ) {
var RemoveScriptCommand = function ( object, script ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetColorCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetColorCommand = function ( object, attributeName, newValue ) {
var SetColorCommand = function ( object, attributeName, newValue ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetGeometryCommand.js
Expand Up @@ -9,7 +9,7 @@
* @constructor
*/

SetGeometryCommand = function ( object, newGeometry ) {
var SetGeometryCommand = function ( object, newGeometry ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetGeometryValueCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetGeometryValueCommand = function ( object, attributeName, newValue ) {
var SetGeometryValueCommand = function ( object, attributeName, newValue ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetMaterialColorCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetMaterialColorCommand = function ( object, attributeName, newValue ) {
var SetMaterialColorCommand = function ( object, attributeName, newValue ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetMaterialCommand.js
Expand Up @@ -9,7 +9,7 @@
* @constructor
*/

SetMaterialCommand = function ( object, newMaterial ) {
var SetMaterialCommand = function ( object, newMaterial ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetMaterialMapCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetMaterialMapCommand = function ( object, mapName, newMap ) {
var SetMaterialMapCommand = function ( object, mapName, newMap ) {

Command.call( this );
this.type = 'SetMaterialMapCommand';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetMaterialValueCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetMaterialValueCommand = function ( object, attributeName, newValue ) {
var SetMaterialValueCommand = function ( object, attributeName, newValue ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetPositionCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetPositionCommand = function ( object, newPosition, optionalOldPosition ) {
var SetPositionCommand = function ( object, newPosition, optionalOldPosition ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetRotationCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetRotationCommand = function ( object, newRotation, optionalOldRotation ) {
var SetRotationCommand = function ( object, newRotation, optionalOldRotation ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetScaleCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetScaleCommand = function ( object, newScale, optionalOldScale ) {
var SetScaleCommand = function ( object, newScale, optionalOldScale ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetSceneCommand.js
Expand Up @@ -8,7 +8,7 @@
* @constructor
*/

SetSceneCommand = function ( scene ) {
var SetSceneCommand = function ( scene ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetScriptValueCommand.js
Expand Up @@ -12,7 +12,7 @@
* @constructor
*/

SetScriptValueCommand = function ( object, script, attributeName, newValue, cursorPosition ) {
var SetScriptValueCommand = function ( object, script, attributeName, newValue, cursorPosition ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetUuidCommand.js
Expand Up @@ -9,7 +9,7 @@
* @constructor
*/

SetUuidCommand = function ( object, newUuid ) {
var SetUuidCommand = function ( object, newUuid ) {

Command.call( this );

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetValueCommand.js
Expand Up @@ -10,7 +10,7 @@
* @constructor
*/

SetValueCommand = function ( object, attributeName, newValue ) {
var SetValueCommand = function ( object, attributeName, newValue ) {

Command.call( this );

Expand Down

0 comments on commit ec53b8e

Please sign in to comment.