@robotlegsjs/createjs
Version:
CreateJS View Integration with RobotlegsJS
62 lines • 2.74 kB
JavaScript
;
// ------------------------------------------------------------------------------
// Copyright (c) 2017-present, RobotlegsJS. All Rights Reserved.
//
// NOTICE: You are permitted to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
// ------------------------------------------------------------------------------
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContainerRegistryEvent = void 0;
var tslib_1 = require("tslib");
var core_1 = require("@robotlegsjs/core");
/**
* Container existence event
*
* @private
*/
var ContainerRegistryEvent = /** @class */ (function (_super) {
tslib_1.__extends(ContainerRegistryEvent, _super);
/*============================================================================*/
/* Constructor */
/*============================================================================*/
/**
* Creates a new container existence event
*
* @param type The event type
* @param container The container associated with this event
*/
function ContainerRegistryEvent(type, container) {
var _this = _super.call(this, type) || this;
_this._container = container;
return _this;
}
Object.defineProperty(ContainerRegistryEvent.prototype, "container", {
/**
* The container associated with this event
*/
get: function () {
return this._container;
},
enumerable: false,
configurable: true
});
/*============================================================================*/
/* Public Functions */
/*============================================================================*/
/**
* @inheritDoc
*/
ContainerRegistryEvent.prototype.clone = function () {
return new ContainerRegistryEvent(this.type, this._container);
};
/*============================================================================*/
/* Public Static Properties */
/*============================================================================*/
ContainerRegistryEvent.CONTAINER_ADD = "containerAdd";
ContainerRegistryEvent.CONTAINER_REMOVE = "containerRemove";
ContainerRegistryEvent.ROOT_CONTAINER_ADD = "rootContainerAdd";
ContainerRegistryEvent.ROOT_CONTAINER_REMOVE = "rootContainerRemove";
return ContainerRegistryEvent;
}(core_1.Event));
exports.ContainerRegistryEvent = ContainerRegistryEvent;
//# sourceMappingURL=ContainerRegistryEvent.js.map