Ver código fonte

remove curly brackets in comments

Guide 7 anos atrás
pai
commit
7f39516e61
2 arquivos alterados com 13 adições e 13 exclusões
  1. 4 4
      src/Actions/babylon.action.ts
  2. 9 9
      src/Actions/babylon.condition.ts

+ 4 - 4
src/Actions/babylon.action.ts

@@ -22,14 +22,14 @@
 
         /**
         * An event triggered prior to action being executed.
-        * @type {BABYLON.Observable}
+        * @type Observable
         */
         public onBeforeExecuteObservable = new Observable<Action>();
 
         /**
-         * Creates a new {BABYLON.Action}
+         * Creates a new Action
          * @param triggerOptions the trigger, with or without parameters, for the action
-         * @param condition optional determinant of action 
+         * @param condition an optional determinant of action 
          */
         constructor(public triggerOptions: any, condition?: Condition) {
 
@@ -116,7 +116,7 @@
         }
 
         /**
-         * Adds action to chain of actions, may be {DoNothingAction}
+         * Adds action to chain of actions, may be a DoNothingAction
          * @param index The index of the attribute.
          * @returns The action passed in
          * @see https://www.babylonjs-playground.com/#1T30HR#0

+ 9 - 9
src/Actions/babylon.condition.ts

@@ -1,6 +1,6 @@
 module BABYLON {
     /**
-     * A condition applied to an action 
+     * A Condition applied to an Action 
      */
     export class Condition {
         /**
@@ -22,15 +22,15 @@
         public _currentResult: boolean;
 
         /**
-         * Creates a new {BABYLON.Condition}
-         * @param actionManager  
+         * Creates a new Condition
+         * @param actionManager the manager of the action the condition is applied to 
          */
         constructor(actionManager: ActionManager) {
             this._actionManager = actionManager;
         }
 
         /**
-         * Gets the current state of isValid
+         * Check if the current condition is valid
          */
         public isValid(): boolean {
             return true;
@@ -73,7 +73,7 @@
     }
 
     /**
-     * Defines specific conditional operators as extensions of {BABYLON.Condition}
+     * Defines specific conditional operators as extensions of Condition
      */
     export class ValueCondition extends Condition {
         
@@ -154,7 +154,7 @@
         private _property: string;
 
         /**
-         * Creates a new {BABYLON.ValueCondition}
+         * Creates a new ValueCondition
          * @param actionManager manager for the action the condition applies to
          * @param target for the action
          * @param propertyPath path to specify the property of the target the conditional operator uses 
@@ -195,7 +195,7 @@
         }
         
         /**
-         * Serialize the {BABYLON.ValueCondition} into a JSON compatible object
+         * Serialize the ValueCondition into a JSON compatible object
          * @returns serialization object
          */
         public serialize(): any {
@@ -211,7 +211,7 @@
         }
         
         /**
-         * Gets the name of the conditional operator for the {BABYLON.ValueCondition}
+         * Gets the name of the conditional operator for the ValueCondition
          * @param operator the conditional operator
          * @returns the name 
          */
@@ -227,7 +227,7 @@
     }
 
     /**
-     * Defines a predicate condition as an extension of {BABYLON.Condition}
+     * Defines a predicate condition as an extension of Condition
      */
     export class PredicateCondition extends Condition {