MCPcopy Create free account
hub / github.com/flyfloor/react-component / _loop

Function _loop

lib/Calender.js:225–245  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

223 var yearRangeNodes = [];
224
225 var _loop = function _loop(i) {
226 var active = year === i ? '_active' : '';
227 var isDisabled = i < 1900 ? '_disabled' : '';
228 var yearItem = isDisabled ? React.createElement(
229 'a',
230 { href: 'javascript:;', className: isDisabled },
231 i
232 ) : React.createElement(
233 'a',
234 { href: 'javascript:;', className: active, onClick: function onClick() {
235 return _this2.handleYearPickerClick(i);
236 } },
237 i
238 );
239
240 yearRangeNodes.push(React.createElement(
241 'li',
242 { key: 'year-picker-' + i },
243 yearItem
244 ));
245 };
246
247 for (var i = beginY; i < endY; i++) {
248 _loop(i);

Callers 1

Calender.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…