UNPKG

mframejs

Version:
27 lines 896 B
Object.defineProperty(exports, "__esModule", { value: true }); var exported_1 = require("../interface/exported"); function observable(options) { var _options; _options = options; return function (target, key) { if (!target[exported_1.CONSTANTS.META_BINDABLE]) { target[exported_1.CONSTANTS.META_BINDABLE] = {}; } if (options) { if (!options.attribute) { options.attribute = null; } } if (!target[exported_1.CONSTANTS.META_BINDABLE][key]) { target[exported_1.CONSTANTS.META_BINDABLE][key] = { key: key, observableOnly: true, options: _options || { attribute: null } }; } }; } exports.observable = observable; //# sourceMappingURL=observable.js.map