|
14507 | 14507 | "left", |
14508 | 14508 | "right" |
14509 | 14509 | ].reduce(function(memo, opt) { |
14510 | | - return memo = handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo; |
| 14510 | + return handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo; |
14511 | 14511 | }, []); |
14512 | 14512 | return activeHandles.length && activeHandles; |
14513 | 14513 | }, |
|
14909 | 14909 | "left", |
14910 | 14910 | "right" |
14911 | 14911 | ].reduce(function(memo, curr) { |
14912 | | - return memo = handleProps[curr] ? memo.concat(react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(handleComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ |
| 14912 | + return handleProps[curr] ? memo.concat(react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(handleComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ |
14913 | 14913 | key: "".concat(name, "-handle-").concat(curr) |
14914 | 14914 | }, handleProps[curr]))) : memo; |
14915 | 14915 | }, []); |
@@ -17898,16 +17898,16 @@ |
17898 | 17898 | switch(textAnchor){ |
17899 | 17899 | case "start": |
17900 | 17900 | return widths.reduce(function(memo, width, i) { |
17901 | | - return memo = i < index ? memo + width : memo; |
| 17901 | + return i < index ? memo + width : memo; |
17902 | 17902 | }, 0); |
17903 | 17903 | case "end": |
17904 | 17904 | return widths.reduce(function(memo, width, i) { |
17905 | | - return memo = i > index ? memo - width : memo; |
| 17905 | + return i > index ? memo - width : memo; |
17906 | 17906 | }, 0); |
17907 | 17907 | default: |
17908 | 17908 | // middle |
17909 | 17909 | return widths.reduce(function(memo, width, i) { |
17910 | | - return memo = i === index ? memo + width / 2 : memo + (i < index ? width : 0); |
| 17910 | + return i === index ? memo + width / 2 : memo + (i < index ? width : 0); |
17911 | 17911 | }, -totalWidth / 2); |
17912 | 17912 | } |
17913 | 17913 | }, getChildBackgrounds = function(calculatedProps, tspanValues) { |
|
19937 | 19937 | value: function(props, externalMutations) { |
19938 | 19938 | if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) { |
19939 | 19939 | var callbacks = props.externalEventMutations.reduce(function(memo, mutation) { |
19940 | | - return memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo; |
| 19940 | + return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo; |
19941 | 19941 | }, []), compiledCallbacks = callbacks.length ? function() { |
19942 | 19942 | callbacks.forEach(function(c) { |
19943 | 19943 | return c(); |
|
21385 | 21385 | if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(eventReturn)) { |
21386 | 21386 | var callbacks = compileCallbacks(eventReturn); |
21387 | 21387 | _this2.setState(Array.isArray(eventReturn) ? eventReturn.reduce(function(memo, props) { |
21388 | | - return memo = lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, memo, parseEvent(props, eventKey)); |
| 21388 | + return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, memo, parseEvent(props, eventKey)); |
21389 | 21389 | }, {}) : parseEvent(eventReturn, eventKey), callbacks); |
21390 | 21390 | } |
21391 | 21391 | }; // Returns the state object with the mutation caused by a given eventReturn |
|
21509 | 21509 | * i.e. any static `defaultEvents` on `labelComponent` will be returned |
21510 | 21510 | */ getComponentEvents: function(props, components) { |
21511 | 21511 | var events = Array.isArray(components) && components.reduce(function(memo, componentName) { |
21512 | | - var _memo, component = props[componentName], defaultEvents = component && component.type && component.type.defaultEvents, componentEvents = lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(defaultEvents) ? defaultEvents(component.props) : defaultEvents; |
21513 | | - return memo = Array.isArray(componentEvents) ? (_memo = memo).concat.apply(_memo, _toConsumableArray(componentEvents)) : memo; |
| 21512 | + var component = props[componentName], defaultEvents = component && component.type && component.type.defaultEvents, componentEvents = lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(defaultEvents) ? defaultEvents(component.props) : defaultEvents; |
| 21513 | + return Array.isArray(componentEvents) ? memo.concat.apply(memo, _toConsumableArray(componentEvents)) : memo; |
21514 | 21514 | }, []); |
21515 | 21515 | return events && events.length ? events : void 0; |
21516 | 21516 | }, |
|
31426 | 31426 | filterDatasets: function(props, datasets, bounds) { |
31427 | 31427 | var _this = this, filtered = datasets.reduce(function(memo, dataset) { |
31428 | 31428 | var selectedData = _this.getSelectedData(props, dataset.data, bounds); |
31429 | | - return memo = selectedData ? memo.concat({ |
| 31429 | + return selectedData ? memo.concat({ |
31430 | 31430 | childName: dataset.childName, |
31431 | 31431 | eventKey: selectedData.eventKey, |
31432 | 31432 | data: selectedData.data |
|
31850 | 31850 | value: function(props, externalMutations) { |
31851 | 31851 | if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(externalMutations)) { |
31852 | 31852 | var callbacks = props.externalEventMutations.reduce(function(memo, mutation) { |
31853 | | - return memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo; |
| 31853 | + return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo; |
31854 | 31854 | }, []), compiledCallbacks = callbacks.length ? function() { |
31855 | 31855 | callbacks.forEach(function(c) { |
31856 | 31856 | return c(); |
|
33246 | 33246 | }) : [ |
33247 | 33247 | style |
33248 | 33248 | ]; |
33249 | | - return memo = memo.concat(styleArray); |
| 33249 | + return memo.concat(styleArray); |
33250 | 33250 | }, []); |
33251 | 33251 | } |
33252 | 33252 | }, |
|
0 commit comments