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.

31 lines
897 B

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