Files
coopgo/node_modules/ol/Disposable.js
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

34 lines
773 B
JavaScript

/**
* @module ol/Disposable
*/
/**
* @classdesc
* Objects that need to clean up after themselves.
*/
var Disposable = /** @class */ (function () {
function Disposable() {
/**
* The object has already been disposed.
* @type {boolean}
* @protected
*/
this.disposed = false;
}
/**
* Clean up.
*/
Disposable.prototype.dispose = function () {
if (!this.disposed) {
this.disposed = true;
this.disposeInternal();
}
};
/**
* Extension point for disposable objects.
* @protected
*/
Disposable.prototype.disposeInternal = function () { };
return Disposable;
}());
export default Disposable;
//# sourceMappingURL=Disposable.js.map