OpenINF / openinf.github.io

Initialization in variable declarations against recommended approach JS-0119
Anti-pattern
Minor
3 occurrences in this check
Variable 'tcb' should be initialized on declaration.
 33			q: location.search,
 34		}
 35
 36		var rcb, pcb, tcb  // Save callbacks to apply later. 37		if (typeof(data.r) === 'function') rcb = data.r
 38		if (typeof(data.t) === 'function') tcb = data.t
 39		if (typeof(data.p) === 'function') pcb = data.p
Variable 'pcb' should be initialized on declaration.
 33			q: location.search,
 34		}
 35
 36		var rcb, pcb, tcb  // Save callbacks to apply later. 37		if (typeof(data.r) === 'function') rcb = data.r
 38		if (typeof(data.t) === 'function') tcb = data.t
 39		if (typeof(data.p) === 'function') pcb = data.p
Variable 'rcb' should be initialized on declaration.
 33			q: location.search,
 34		}
 35
 36		var rcb, pcb, tcb  // Save callbacks to apply later. 37		if (typeof(data.r) === 'function') rcb = data.r
 38		if (typeof(data.t) === 'function') tcb = data.t
 39		if (typeof(data.p) === 'function') pcb = data.p