1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var CacheMap_1 = require("./CacheMap");
|
4 | var CacheItem = (function () {
|
5 | function CacheItem(entity, liveItem) {
|
6 | var _this = this;
|
7 | this.clone = function () { return new CacheItem(_this.entity, _this); };
|
8 | this.entity = entity;
|
9 | if (liveItem) {
|
10 | this.mapFrom = liveItem.mapFrom.clone();
|
11 | this.mapTo = liveItem.mapTo.clone();
|
12 | }
|
13 | else {
|
14 | this.mapFrom = new CacheMap_1.default();
|
15 | this.mapTo = new CacheMap_1.default();
|
16 | }
|
17 | }
|
18 | return CacheItem;
|
19 | }());
|
20 | exports.default = CacheItem;
|