Skip to content

Commit 47359c8

Browse files
author
zesani
committed
restore
1 parent aad7dce commit 47359c8

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

codemirror.vue

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
var CodeMirrorMetas = require('./metas.js')
88
require('codemirror/lib/codemirror.css')
99
// var
10-
function makeMarker() {
11-
var marker = document.createElement("div");
12-
marker.style.color = "#822";
13-
marker.innerHTML = "";
14-
return marker;
15-
}
1610
export default {
1711
data: function() {
1812
return {
@@ -29,8 +23,7 @@
2923
styleActiveLine: true,
3024
lineNumbers: true,
3125
mode: 'text/javascript',
32-
lineWrapping: true,
33-
gutters: ["CodeMirror-linenumbers", "breakpoints"]
26+
lineWrapping: true
3427
}
3528
}
3629
},
@@ -90,11 +83,6 @@
9083
_this.$emit('input', _this.content)
9184
}
9285
})
93-
this.editor.on("gutterClick", function(cm, n) {
94-
var info = cm.lineInfo(n);
95-
cm.setGutterMarker(n, "breakpoints", info.gutterMarkers ? null : makeMarker())
96-
console.log(cm.lineInfo(n))
97-
})
9886
},
9987
watch: {
10088
'code': function(newVal, oldVal) {

0 commit comments

Comments
 (0)