Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

internal.js 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*!
  2. * Dependencies
  3. */
  4. 'use strict';
  5. const StateMachine = require('./statemachine');
  6. const ActiveRoster = StateMachine.ctor('require', 'modify', 'init', 'default', 'ignore');
  7. module.exports = exports = InternalCache;
  8. function InternalCache() {
  9. this.strictMode = undefined;
  10. this.selected = undefined;
  11. this.shardval = undefined;
  12. this.saveError = undefined;
  13. this.validationError = undefined;
  14. this.adhocPaths = undefined;
  15. this.removing = undefined;
  16. this.inserting = undefined;
  17. this.saving = undefined;
  18. this.version = undefined;
  19. this.getters = {};
  20. this._id = undefined;
  21. this.populate = undefined; // what we want to populate in this doc
  22. this.populated = undefined;// the _ids that have been populated
  23. this.wasPopulated = false; // if this doc was the result of a population
  24. this.scope = undefined;
  25. this.activePaths = new ActiveRoster;
  26. this.pathsToScopes = {};
  27. this.cachedRequired = {};
  28. this.session = null;
  29. this.$setCalled = new Set();
  30. // embedded docs
  31. this.ownerDocument = undefined;
  32. this.fullPath = undefined;
  33. }