UNPKG

respond-framework

Version:
15 lines (14 loc) 522 B
"use strict"; 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; }