We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dda5d72 commit 09adaf4Copy full SHA for 09adaf4
1 file changed
test/test.js
@@ -1893,13 +1893,13 @@ testCM("addKeyMap", function(cm) {
1893
}, {value: "abc"});
1894
1895
function mouseDown(cm, button, pos, mods) {
1896
- let coords = cm.charCoords(pos, "window")
1897
- let event = {type: "mousedown",
+ var coords = cm.charCoords(pos, "window")
+ var event = {type: "mousedown",
1898
preventDefault: Math.min,
1899
which: button,
1900
target: cm.display.lineDiv,
1901
clientX: coords.left, clientY: coords.top}
1902
- if (mods) for (let prop in mods) event[prop] = mods[prop]
+ if (mods) for (var prop in mods) event[prop] = mods[prop]
1903
cm.triggerOnMouseDown(event)
1904
}
1905
0 commit comments