File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 85
85
_this .$emit (' input' , _this .content )
86
86
}
87
87
})
88
- this .gutterMarkers ()
88
+ this .unseenLineMarkers ()
89
89
},
90
90
watch: {
91
91
' code ' : function (newVal , oldVal ) {
96
96
this .content = newVal
97
97
this .editor .scrollTo (scrollInfo .left , scrollInfo .top )
98
98
}
99
- this .gutterMarkers ()
99
+ this .unseenLineMarkers ()
100
100
},
101
101
' value ' : function (newVal , oldVal ) {
102
102
const editor_value = this .editor .getValue ()
106
106
this .content = newVal
107
107
this .editor .scrollTo (scrollInfo .left , scrollInfo .top )
108
108
}
109
+ this .unseenLineMarkers ()
109
110
}
110
111
},
111
112
methods: {
112
- gutterMarkers : function () {
113
+ unseenLineMarkers : function () {
113
114
var _this = this
114
- _this .unseenLines .forEach (line => {
115
- var info = _this .editor .lineInfo (line)
116
- _this .editor .setGutterMarker (line, " breakpoints" , info .gutterMarkers ? null : _this .marker ())
117
- })
115
+ if (_this .unseenLines !== undefined && _this .marker !== undefined ) {
116
+ _this .unseenLines .forEach (line => {
117
+ var info = _this .editor .lineInfo (line)
118
+ _this .editor .setGutterMarker (line, " breakpoints" , info .gutterMarkers ? null : _this .marker ())
119
+ })
120
+ }
118
121
}
119
122
}
120
123
}
You can’t perform that action at this time.
0 commit comments