Blame view

天文台pc/tianwentai-ui/node_modules/dom-helpers/cjs/ownerDocument.js 284 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  "use strict";
  
  exports.__esModule = true;
  exports.default = ownerDocument;
  
  /**
   * Returns the owner document of a given element.
   * 
   * @param node the element
   */
  function ownerDocument(node) {
    return node && node.ownerDocument || document;
  }
  
  module.exports = exports["default"];