Skip to content
Snippets Groups Projects
Commit 14bfe4e2 authored by Michele Alberti's avatar Michele Alberti
Browse files

[dome] Do not use var if unnecessary.

parent ffeb5d8f
No related branches found
No related tags found
No related merge requests found
...@@ -443,7 +443,7 @@ export class RichTextBuffer extends Emitter { ...@@ -443,7 +443,7 @@ export class RichTextBuffer extends Emitter {
this.doFlushText(); this.doFlushText();
this.emit('scroll', position); this.emit('scroll', position);
} else if (typeof position === 'string') { } else if (typeof position === 'string') {
var line = Infinity; let line = Infinity;
this.findTextMarker(position).forEach((tm) => { this.findTextMarker(position).forEach((tm) => {
const rg = tm.find(); const rg = tm.find();
const ln = rg.from.line; const ln = rg.from.line;
...@@ -550,7 +550,7 @@ export class RichTextBuffer extends Emitter { ...@@ -550,7 +550,7 @@ export class RichTextBuffer extends Emitter {
/* Close Operation */ /* Close Operation */
private doMark(tag: BufferedMarker) { private doMark(tag: BufferedMarker) {
const { id, hover, className, startIndex, stopIndex } = tag; const { id, hover, className, startIndex, stopIndex } = tag;
var markerId; let markerId;
if (id || hover) { if (id || hover) {
markerId = 'dome-xHover-' + (this.markid++); markerId = 'dome-xHover-' + (this.markid++);
const cmark = { const cmark = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment