(methodName, info)
| 589 | }; |
| 590 | |
| 591 | var defineDeprecationWarning = function (methodName, info) { |
| 592 | Object.defineProperty(Component.prototype, methodName, { |
| 593 | get: function () { |
| 594 | warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); |
| 595 | |
| 596 | return undefined; |
| 597 | } |
| 598 | }); |
| 599 | }; |
| 600 | |
| 601 | for (var fnName in deprecatedAPIs) { |
| 602 | if (deprecatedAPIs.hasOwnProperty(fnName)) { |
no test coverage detected