您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ContextElementDependency.js 439B

123456789101112131415161718192021
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const ModuleDependency = require("./ModuleDependency");
  7. class ContextElementDependency extends ModuleDependency {
  8. constructor(request, userRequest) {
  9. super(request);
  10. if (userRequest) {
  11. this.userRequest = userRequest;
  12. }
  13. }
  14. get type() {
  15. return "context element";
  16. }
  17. }
  18. module.exports = ContextElementDependency;