Fix click event for compatibility (for example with Firefox)

This commit is contained in:
Maximilian Grundke
2016-05-07 15:01:34 +02:00
parent defe482e32
commit 6f3d26db06

View File

@ -115,7 +115,7 @@ do not put a carriage return in the line below. it will be present in the presen
}
function handleSidebarClick(e) {
var target = e.domEvent.toElement;
var target = e.domEvent.target;
var editor = e.editor;
if (target.className.indexOf("ace_gutter-cell") == -1) return;