[editor] Fix console error on hover over old syntax error token
if (self.editor.session.$backMarkers[marker].clazz.indexOf('hue-ace-syntax-') === 0) {
var token = self.editor.session.$backMarkers[marker].token;
delete token.syntaxError;
+ delete token.notFound;
self.editor.session.removeMarker(self.editor.session.$backMarkers[marker].id);
}
}
} else if (token !== null && token.notFound) {
tooltipTimeout = window.setTimeout(function () {
// TODO: i18n
- if (token.notFound) {
+ if (token.notFound && token.syntaxError) {
var tooltipText;
if (token.syntaxError.expected.length > 0) {
tooltipText = SyntaxCheckerGlobals.i18n.didYouMean + ' "' + token.syntaxError.expected[0].text + '"?';
