Skip to content

Commit ffb96cf

Browse files
committed
[show-hint addon] Move variable into module scope
1 parent 76f5b03 commit ffb96cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/hint/show-hint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// CodeMirror, copyright (c) by Marijn Haverbeke and others
22
// Distributed under an MIT license: https://codemirror.net/LICENSE
33

4-
var mac = /Mac/.test(navigator.platform);
5-
64
(function(mod) {
75
if (typeof exports == "object" && typeof module == "object") // CommonJS
86
mod(require("../../lib/codemirror"));
@@ -170,6 +168,8 @@ var mac = /Mac/.test(navigator.platform);
170168
Esc: handle.close
171169
};
172170

171+
var mac = /Mac/.test(navigator.platform);
172+
173173
if (mac) {
174174
baseMap["Ctrl-P"] = function() {handle.moveFocus(-1);};
175175
baseMap["Ctrl-N"] = function() {handle.moveFocus(1);};

0 commit comments

Comments
 (0)