Consistency in naming and jsdocs
This commit is contained in:
parent
cfa3047330
commit
7fa17322a1
|
@ -5,11 +5,11 @@ import { UnsupportedMobileBrowser } from '../../unsupported-browser';
|
||||||
* Array of rules defining whether we should intercept component to render
|
* Array of rules defining whether we should intercept component to render
|
||||||
* or not.
|
* or not.
|
||||||
*
|
*
|
||||||
* @type {Array<Function>}
|
* @private
|
||||||
* @param {Object} state - Redux state object.
|
|
||||||
* @returns {ReactElement|void}
|
* @returns {ReactElement|void}
|
||||||
|
* @type {Function[]}
|
||||||
*/
|
*/
|
||||||
const RULES = [
|
const _RULES = [
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This rule describes case when user opens application using mobile
|
* This rule describes case when user opens application using mobile
|
||||||
|
@ -46,7 +46,7 @@ export function interceptComponent(stateOrGetState, currentComponent) {
|
||||||
? stateOrGetState()
|
? stateOrGetState()
|
||||||
: stateOrGetState;
|
: stateOrGetState;
|
||||||
|
|
||||||
for (const rule of RULES) {
|
for (const rule of _RULES) {
|
||||||
result = rule(state);
|
result = rule(state);
|
||||||
if (result) {
|
if (result) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue