Skip to content

Commit

Permalink
Build version 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
schorfES committed Mar 31, 2020
1 parent 2f4ed0d commit b96e17e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/pacto.model.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 15 additions & 11 deletions dist/pacto.model.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
});
_exports.Model = _exports.Collection = void 0;

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

Expand All @@ -33,31 +33,35 @@

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

var __refs = new WeakMap();

var Model =
/*#__PURE__*/
function (_EventEmitter) {
var Model = /*#__PURE__*/function (_EventEmitter) {
_inherits(Model, _EventEmitter);

var _super = _createSuper(Model);

function Model() {
var _this;

var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

_classCallCheck(this, Model);

_this = _possibleConstructorReturn(this, _getPrototypeOf(Model).call(this));
_this = _super.call(this);
props = _objectSpread({}, _this.defaults, {}, props);
var handler = {
set: function set(target, prop, value) {
Expand Down Expand Up @@ -100,19 +104,19 @@

var __refs$1 = new WeakMap();

var Collection =
/*#__PURE__*/
function (_EventEmitter2) {
var Collection = /*#__PURE__*/function (_EventEmitter2) {
_inherits(Collection, _EventEmitter2);

var _super2 = _createSuper(Collection);

function Collection() {
var _this2;

var models = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

_classCallCheck(this, Collection);

_this2 = _possibleConstructorReturn(this, _getPrototypeOf(Collection).call(this));
_this2 = _super2.call(this);

var enshureIsModel = function enshureIsModel(model) {
return model instanceof Model ? model : new _this2.Model(model);
Expand Down

0 comments on commit b96e17e

Please sign in to comment.