| Index: Source/devtools/front_end/CodeMirrorTextEditor.js
|
| diff --git a/Source/devtools/front_end/CodeMirrorTextEditor.js b/Source/devtools/front_end/CodeMirrorTextEditor.js
|
| index 95980edef7cae35d9721090df841f493ffcbea22..d68146eb743c104860275e0c87026708bc2a9aa2 100644
|
| --- a/Source/devtools/front_end/CodeMirrorTextEditor.js
|
| +++ b/Source/devtools/front_end/CodeMirrorTextEditor.js
|
| @@ -159,7 +159,7 @@ WebInspector.CodeMirrorTextEditor = function(url, delegate)
|
| this._codeMirror.on("beforeSelectionChange", this._beforeSelectionChange.bind(this));
|
| this._codeMirror.on("scroll", this._scroll.bind(this));
|
| this._codeMirror.on("focus", this._focus.bind(this));
|
| - this.element.addEventListener("contextmenu", this._contextMenu.bind(this), false);
|
| + this._codeMirror.on("contextmenu", this._contextMenu.bind(this));
|
| /**
|
| * @this {WebInspector.CodeMirrorTextEditor}
|
| */
|
| @@ -724,7 +724,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
|
| this.dispatchEventToListeners(WebInspector.TextEditor.Events.GutterClick, { lineNumber: lineNumber, event: event });
|
| },
|
|
|
| - _contextMenu: function(event)
|
| + _contextMenu: function(codeMirror, event)
|
| {
|
| var contextMenu = new WebInspector.ContextMenu(event);
|
| var target = event.target.enclosingNodeOrSelfWithClass("CodeMirror-gutter-elt");
|
|
|