decord/alpha/source/lib/LifecycleManager.tsx

36 lines
886 B
TypeScript
Raw Normal View History

// Module ID: 1982
// Function ID: 1983
// Name: LifecycleManager
2026-07-29 08:29:29 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Module 1982 (LifecycleManager)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("lib/LifecycleManager.tsx");
2026-07-29 08:29:29 +00:00
class LifecycleManager {
constructor() {
return Object.assign({ isInitialized: false });
}
2026-07-29 08:29:29 +00:00
}
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();
}
};
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
export default LifecycleManager;