Skip to content

Commit ed0ec10

Browse files
committed
[lint] fix linter plugin stage changes
1 parent 8d28e90 commit ed0ec10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

addon/lint/lint.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
this.onClick = function(e) { onClick(cm, e); };
155155
this.waitingFor = 0
156156

157-
this.contextMenuEnable = typeof options.contextmenu === 'function'
157+
this.contextMenuEnable = typeof this.linterOptions.contextmenu === 'function'
158158
}
159159

160160
var defaults = {
@@ -199,7 +199,7 @@
199199

200200
if (cm.state.lint.contextMenuEnable) {
201201
marker.addEventListener('click', function (e) {
202-
const menus = cm.state.lint.options.contextmenu(annotations)
202+
const menus = cm.state.lint.linterOptions.contextmenu(annotations)
203203
showMenu(cm, menus, e)
204204
})
205205
}
@@ -354,7 +354,7 @@
354354

355355
function onClick (cm, e) {
356356
handleMarkerAction(cm, e, function (cm, annotations, e) {
357-
const menus = cm.state.lint.options.contextmenu(annotations)
357+
const menus = cm.state.lint.linterOptions.contextmenu(annotations)
358358
showMenu(cm, menus, e)
359359
})
360360
}

0 commit comments

Comments
 (0)