Skip to content

Commit 24c3a06

Browse files
committed
Fix doc(cm) to actually return a document
1 parent 139983f commit 24c3a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ if (ios) // Mobile Safari apparently has a bug where select() is broken.
9696
else if (ie) // Suppress mysterious IE10 errors
9797
selectInput = function(node) { try { node.select() } catch(_e) {} }
9898

99-
export function doc(cm) { return cm.display.wrapper.ownerDocument.defaultView }
99+
export function doc(cm) { return cm.display.wrapper.ownerDocument }
100100

101101
export function win(cm) { return doc(cm).defaultView }

0 commit comments

Comments
 (0)