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

12345678910111213141516171819202122232425262728293031323334353637
  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. // embedded docs
  30. this.ownerDocument = undefined;
  31. this.fullPath = undefined;
  32. }