|
|
|
+var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _react=_interopRequireDefault(require("react"));var BaseSystem=function(){function BaseSystem(){(0,_classCallCheck2.default)(this,BaseSystem);this.__update=null;}(0,_createClass2.default)(BaseSystem,[{key:"onUpdate",value:function onUpdate(fn){this.__update=fn;return this;}},{key:"forceUpdate",value:function forceUpdate(props){return this.__update&&this.__update(props);}}]);return BaseSystem;}();exports.default=BaseSystem;
|