@aca-1/a2-composer
Version:
Angular 2 Interface for composer
39 lines • 1.39 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { MockClass } from './class.mock';
export var SYSTEM_LIST = [];
var MockSystem = (function (_super) {
__extends(MockSystem, _super);
function MockSystem(id, data) {
var _this = _super.call(this) || this;
if (!id) {
_this.gen_id('sys_Fd-', ++MockSystem.COUNT);
}
else {
_this.id = id;
if (data) {
if (data && data.System && data.System[0] && data.System[0].name) {
_this.name = data.System[0].name;
}
for (var i in data) {
if (data[i] && !(_this[i] instanceof Function)) {
_this[i] = data[i];
}
}
}
}
return _this;
}
return MockSystem;
}(MockClass));
export { MockSystem };
MockSystem.COUNT = 0;
//# sourceMappingURL=system.mock.js.map