UNPKG

@blinkk/selective-edit

Version:
21 lines 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataMixin = void 0; const deepObject_1 = require("../utility/deepObject"); function DataMixin(Base) { return class DataClass extends Base { get data() { return this._data; } set data(data) { if (data === undefined) { this._data = undefined; } else { this._data = (0, deepObject_1.autoDeepObject)(data); } } }; } exports.DataMixin = DataMixin; //# sourceMappingURL=data.js.map