respond-framework
Version:
create as fast you think
15 lines (14 loc) • 522 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = proxify;
var _createProxy = require("../../proxy/createProxy.js");
var _replaceWithProxies = require("../helpers/replaceWithProxies.js");
function proxify() {
if (this.profixied) return this.state;
const proxy = (0, _createProxy.default)(this.topState, this.versionNotifiers, this.proxyCache, this.refIds);
(0, _replaceWithProxies.default)(proxy);
this.profixied = true;
return window.state = this.state = proxy;
}