
                (function() {
                    var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
                    var __module = nodeEnv ? module : {exports:{}};
                    var __filename = 'preview-scripts/assets/scripts/list/SingleBase.js';
                    var __require = nodeEnv ? function (request) {
                        return cc.require(request);
                    } : function (request) {
                        return __quick_compile_project__.require(request, __filename);
                    };
                    function __define (exports, require, module) {
                        if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, '6e2a4PJyw1Ktaa7PnoVl9D4', 'SingleBase');
// scripts/list/SingleBase.ts

"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.SingleBase = void 0;
var SingleBase = /** @class */ (function (_super) {
    __extends(SingleBase, _super);
    function SingleBase() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    SingleBase.getInstance = function () {
        if (!this.instance) {
            this.instance = new this();
            this.instance.init();
        }
        return this.instance;
    };
    SingleBase.deleteInstance = function () {
        if (this.instance) {
            this.instance.clear();
            delete this.instance;
        }
    };
    SingleBase.prototype.init = function (name) {
        var args = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            args[_i - 1] = arguments[_i];
        }
        return this;
    };
    SingleBase.prototype.clear = function () {
    };
    return SingleBase;
}(cc.EventTarget));
exports.SingleBase = SingleBase;

cc._RF.pop();
                    }
                    if (nodeEnv) {
                        __define(__module.exports, __require, __module);
                    }
                    else {
                        __quick_compile_project__.registerModuleFunc(__filename, function () {
                            __define(__module.exports, __require, __module);
                        });
                    }
                })();
//# sourceMappingURL=data:application/json;charset=ut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