|
1 | 1 | /* |
2 | | -react-datetime v2.8.10 |
| 2 | +react-datetime v2.8.11 |
3 | 3 | https://github.com/YouCanBookMe/react-datetime |
4 | 4 | MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE |
5 | 5 | */ |
@@ -1423,45 +1423,43 @@ return /******/ (function(modules) { // webpackBootstrap |
1423 | 1423 | var warning = emptyFunction; |
1424 | 1424 |
|
1425 | 1425 | if (process.env.NODE_ENV !== 'production') { |
1426 | | - (function () { |
1427 | | - var printWarning = function printWarning(format) { |
1428 | | - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { |
1429 | | - args[_key - 1] = arguments[_key]; |
1430 | | - } |
1431 | | - |
1432 | | - var argIndex = 0; |
1433 | | - var message = 'Warning: ' + format.replace(/%s/g, function () { |
1434 | | - return args[argIndex++]; |
1435 | | - }); |
1436 | | - if (typeof console !== 'undefined') { |
1437 | | - console.error(message); |
1438 | | - } |
1439 | | - try { |
1440 | | - // --- Welcome to debugging React --- |
1441 | | - // This error was thrown as a convenience so that you can use this stack |
1442 | | - // to find the callsite that caused this warning to fire. |
1443 | | - throw new Error(message); |
1444 | | - } catch (x) {} |
1445 | | - }; |
| 1426 | + var printWarning = function printWarning(format) { |
| 1427 | + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { |
| 1428 | + args[_key - 1] = arguments[_key]; |
| 1429 | + } |
1446 | 1430 |
|
1447 | | - warning = function warning(condition, format) { |
1448 | | - if (format === undefined) { |
1449 | | - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); |
1450 | | - } |
| 1431 | + var argIndex = 0; |
| 1432 | + var message = 'Warning: ' + format.replace(/%s/g, function () { |
| 1433 | + return args[argIndex++]; |
| 1434 | + }); |
| 1435 | + if (typeof console !== 'undefined') { |
| 1436 | + console.error(message); |
| 1437 | + } |
| 1438 | + try { |
| 1439 | + // --- Welcome to debugging React --- |
| 1440 | + // This error was thrown as a convenience so that you can use this stack |
| 1441 | + // to find the callsite that caused this warning to fire. |
| 1442 | + throw new Error(message); |
| 1443 | + } catch (x) {} |
| 1444 | + }; |
1451 | 1445 |
|
1452 | | - if (format.indexOf('Failed Composite propType: ') === 0) { |
1453 | | - return; // Ignore CompositeComponent proptype check. |
1454 | | - } |
| 1446 | + warning = function warning(condition, format) { |
| 1447 | + if (format === undefined) { |
| 1448 | + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); |
| 1449 | + } |
1455 | 1450 |
|
1456 | | - if (!condition) { |
1457 | | - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { |
1458 | | - args[_key2 - 2] = arguments[_key2]; |
1459 | | - } |
| 1451 | + if (format.indexOf('Failed Composite propType: ') === 0) { |
| 1452 | + return; // Ignore CompositeComponent proptype check. |
| 1453 | + } |
1460 | 1454 |
|
1461 | | - printWarning.apply(undefined, [format].concat(args)); |
| 1455 | + if (!condition) { |
| 1456 | + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { |
| 1457 | + args[_key2 - 2] = arguments[_key2]; |
1462 | 1458 | } |
1463 | | - }; |
1464 | | - })(); |
| 1459 | + |
| 1460 | + printWarning.apply(undefined, [format].concat(args)); |
| 1461 | + } |
| 1462 | + }; |
1465 | 1463 | } |
1466 | 1464 |
|
1467 | 1465 | module.exports = warning; |
@@ -3291,7 +3289,6 @@ return /******/ (function(modules) { // webpackBootstrap |
3291 | 3289 | onClickOutside = __webpack_require__(19) |
3292 | 3290 | ; |
3293 | 3291 |
|
3294 | | - |
3295 | 3292 | var DateTimePickerYears = onClickOutside( createClass({ |
3296 | 3293 | render: function() { |
3297 | 3294 | var year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10; |
|
0 commit comments