application.js 339 B

1234567891011121314151617
  1. 'use strict';
  2. const ViewManager = require('../../lib/view_manager');
  3. const VIEW = Symbol('Application#view');
  4. module.exports = {
  5. /**
  6. * Retrieve ViewManager instance
  7. * @member {ViewManager} Application#view
  8. */
  9. get view() {
  10. if (!this[VIEW]) {
  11. this[VIEW] = new ViewManager(this);
  12. }
  13. return this[VIEW];
  14. },
  15. };