Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
35 lines
886 B
TypeScript
35 lines
886 B
TypeScript
// Module ID: 1982
|
|
// Function ID: 1983
|
|
// Name: LifecycleManager
|
|
// Dependencies: [2]
|
|
|
|
// Module 1982 (LifecycleManager)
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("lib/LifecycleManager.tsx");
|
|
class LifecycleManager {
|
|
constructor() {
|
|
return Object.assign({ isInitialized: false });
|
|
}
|
|
}
|
|
const prototype = LifecycleManager.prototype;
|
|
prototype["initialize"] = function initialize() {
|
|
const self = this;
|
|
const items = [...arguments];
|
|
if (!this.isInitialized) {
|
|
self.isInitialized = true;
|
|
const _initialize = self._initialize;
|
|
const items1 = [];
|
|
HermesBuiltin.arraySpread(items, 0);
|
|
HermesBuiltin.apply(items1, self);
|
|
}
|
|
};
|
|
prototype["terminate"] = function terminate() {
|
|
const self = this;
|
|
if (this.isInitialized) {
|
|
self.isInitialized = false;
|
|
self._terminate();
|
|
}
|
|
};
|
|
|
|
export default LifecycleManager;
|