UNPKG

ecol

Version:
42 lines 1.69 kB
"use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var e_1, _a; Object.defineProperty(exports, "__esModule", { value: true }); var EventDispatcher_1 = require("../basic/EventDispatcher"); var MapElementList_1 = require("tstl/internal/container/associative/MapElementList"); var MapElementVector_1 = require("tstl/internal/container/associative/MapElementVector"); try { for (var _b = __values([MapElementList_1.MapElementList.prototype, MapElementVector_1.MapElementVector.prototype]), _c = _b.next(); !_c.done; _c = _b.next()) { var proto = _c.value; Object.defineProperty(proto, "second", { get: function () { return this.value.second; }, set: function (val) { this.value.second = val; if (this.source().dispatcher_ instanceof EventDispatcher_1.EventDispatcher) this.source().refresh(this); }, enumerable: true, configurable: true }); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } //# sourceMappingURL=internal.js.map