ソースを参照

Consistency in naming and jsdocs

j8
Lyubomir Marinov 8年前
コミット
7fa17322a1
1個のファイルの変更4行の追加4行の削除
  1. 4
    4
      react/features/base/util/interceptComponent.js

+ 4
- 4
react/features/base/util/interceptComponent.js ファイルの表示

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

読み込み中…
キャンセル
保存