@robotlegsjs/createjs
Version:
CreateJS View Integration with RobotlegsJS
59 lines • 2.44 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.ConfigureViewEvent = void 0;
var tslib_1 = require("tslib");
var core_1 = require("@robotlegsjs/core");
/**
* View Configuration Event
*
* @private
*/
var ConfigureViewEvent = /** @class */ (function (_super) {
tslib_1.__extends(ConfigureViewEvent, _super);
/*============================================================================*/
/* Constructor */
/*============================================================================*/
/**
* Creates a view configuration event
*
* @param type The event type
* @param view The associated view instance
*/
function ConfigureViewEvent(type, view) {
var _this = _super.call(this, type, true) || this;
_this._view = view;
return _this;
}
Object.defineProperty(ConfigureViewEvent.prototype, "view", {
/**
* The view instance associated with this event
*/
get: function () {
return this._view;
},
enumerable: false,
configurable: true
});
/*============================================================================*/
/* Public Functions */
/*============================================================================*/
/**
* @inheritDoc
*/
ConfigureViewEvent.prototype.clone = function () {
return new ConfigureViewEvent(this.type, this._view);
};
/*============================================================================*/
/* Public Static Properties */
/*============================================================================*/
ConfigureViewEvent.CONFIGURE_VIEW = "configureView";
return ConfigureViewEvent;
}(core_1.Event));
exports.ConfigureViewEvent = ConfigureViewEvent;
//# sourceMappingURL=ConfigureViewEvent.js.map