UNPKG

reactn

Version:

React, but with built-in global state management.

15 lines (14 loc) 516 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var methods_1 = require("../methods"); exports.componentWillUnmountPrototype = function (that) { var proto = Object.getPrototypeOf(that); if (Object.prototype.hasOwnProperty.call(proto, 'componentWillUnmount')) { that.componentWillUnmount = function () { methods_1.ReactNComponentWillUnmount(that); proto.componentWillUnmount.bind(that)(); }; return true; } return false; };