@robotlegsjs/createjs
Version:
CreateJS View Integration with RobotlegsJS
50 lines • 1.92 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.ContextView = void 0;
/**
* The Context View represents the root Container for a Context
*/
var ContextView = /** @class */ (function () {
/*============================================================================*/
/* Constructor */
/*============================================================================*/
/**
* The Context View represents the root Container for a Context
*
* @param view The root Container for this Context
*/
function ContextView(view) {
if (view !== null && view !== undefined) {
this._view = view;
}
else {
throw new Error("View can't be null or undefined");
}
}
/*============================================================================*/
/* Public Properties */
/*============================================================================*/
/**
*
*/
ContextView.prototype.configure = function () { };
Object.defineProperty(ContextView.prototype, "view", {
/**
* The root Container for this Context
*/
get: function () {
return this._view;
},
enumerable: false,
configurable: true
});
return ContextView;
}());
exports.ContextView = ContextView;
//# sourceMappingURL=ContextView.js.map