UNPKG

fluxtuate

Version:

a javascript ES7 library for handling complex data transactions

47 lines (29 loc) 2.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _arrayWrapper = require("./array-wrapper"); var _arrayWrapper2 = _interopRequireDefault(_arrayWrapper); var _internals = require("./_internals"); var _updateModelWrapper = require("./update-model-wrapper"); var _updateModelWrapper2 = _interopRequireDefault(_updateModelWrapper); var _updateDateWrapper = require("./update-date-wrapper"); var _updateDateWrapper2 = _interopRequireDefault(_updateDateWrapper); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var UpdateArrayWrapper = function (_ArrayWrapper) { _inherits(UpdateArrayWrapper, _ArrayWrapper); function UpdateArrayWrapper(wrappedArray, holderContext) { _classCallCheck(this, UpdateArrayWrapper); var _this = _possibleConstructorReturn(this, (UpdateArrayWrapper.__proto__ || Object.getPrototypeOf(UpdateArrayWrapper)).call(this, wrappedArray, holderContext)); _this[_internals.updateable] = true; _this[_internals.modelConstructor] = _updateModelWrapper2.default; _this[_internals.dateConstructor] = _updateDateWrapper2.default; return _this; } return UpdateArrayWrapper; }(_arrayWrapper2.default); exports.default = UpdateArrayWrapper;