Browse Source

Consistency in naming and jsdocs

j8
Lyubomir Marinov 8 years ago
parent
commit
7fa17322a1
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      react/features/base/util/interceptComponent.js

+ 4
- 4
react/features/base/util/interceptComponent.js View File

5
  * Array of rules defining whether we should intercept component to render
5
  * Array of rules defining whether we should intercept component to render
6
  * or not.
6
  * or not.
7
  *
7
  *
8
- * @type {Array<Function>}
9
- * @param {Object} state - Redux state object.
8
+ * @private
10
  * @returns {ReactElement|void}
9
  * @returns {ReactElement|void}
10
+ * @type {Function[]}
11
  */
11
  */
12
-const RULES = [
12
+const _RULES = [
13
 
13
 
14
     /**
14
     /**
15
      * This rule describes case when user opens application using mobile
15
      * This rule describes case when user opens application using mobile
46
             ? stateOrGetState()
46
             ? stateOrGetState()
47
             : stateOrGetState;
47
             : stateOrGetState;
48
 
48
 
49
-    for (const rule of RULES) {
49
+    for (const rule of _RULES) {
50
         result = rule(state);
50
         result = rule(state);
51
         if (result) {
51
         if (result) {
52
             break;
52
             break;

Loading…
Cancel
Save