MCPcopy
hub / github.com/kekingcn/kkFileView / root

Function root

server/src/main/resources/static/js/codemirror.js:37–37  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

35{selectInput=function(node){try{node.select();}catch(_e){}};}
36function doc(cm){return cm.display.wrapper.ownerDocument}
37function root(cm){return rootNode(cm.display.wrapper)}
38function rootNode(element){return element.getRootNode?element.getRootNode():element.ownerDocument}
39function win(cm){return doc(cm).defaultView}
40function bind(f){var args=Array.prototype.slice.call(arguments,1);return function(){return f.apply(null,args)}}

Callers 6

endOperation_W2Function · 0.85
selectionSnapshotFunction · 0.85
onKeyDownFunction · 0.85
leftButtonDownFunction · 0.85
extendFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 1

rootNodeFunction · 0.85

Tested by

no test coverage detected