From 7fa17322a10073b6d763a51de4fdf554386da935 Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Thu, 2 Feb 2017 09:46:09 -0600 Subject: [PATCH] Consistency in naming and jsdocs --- react/features/base/util/interceptComponent.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/react/features/base/util/interceptComponent.js b/react/features/base/util/interceptComponent.js index 6e923e7d2..0d79bc251 100644 --- a/react/features/base/util/interceptComponent.js +++ b/react/features/base/util/interceptComponent.js @@ -5,11 +5,11 @@ import { UnsupportedMobileBrowser } from '../../unsupported-browser'; * Array of rules defining whether we should intercept component to render * or not. * - * @type {Array} - * @param {Object} state - Redux state object. + * @private * @returns {ReactElement|void} + * @type {Function[]} */ -const RULES = [ +const _RULES = [ /** * This rule describes case when user opens application using mobile @@ -46,7 +46,7 @@ export function interceptComponent(stateOrGetState, currentComponent) { ? stateOrGetState() : stateOrGetState; - for (const rule of RULES) { + for (const rule of _RULES) { result = rule(state); if (result) { break;