All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
34 lines
773 B
JavaScript
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
|