Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Combine var statements to a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Gerber committed Jul 27, 2016
1 parent 93c22ef commit 716bfe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/search/ScrollTrackMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ define(function (require, exports, module) {
}

posArray.forEach(function (pos) {
var cursorTop = getY(cm, pos);
var top = Math.round(cursorTop / editorHt * trackHt) + trackOffset;
var cursorTop = getY(cm, pos),
top = Math.round(cursorTop / editorHt * trackHt) + trackOffset;
top--; // subtract ~1/2 the ht of a tickmark to center it on ideal pos

html += "<div class='tickmark' style='top:" + top + "px'></div>";
Expand Down Expand Up @@ -189,8 +189,8 @@ define(function (require, exports, module) {
return;
}

var $sb = _getScrollbar(editor);
var $overlay = $("<div class='tickmark-track'></div>");
var $sb = _getScrollbar(editor),
$overlay = $("<div class='tickmark-track'></div>");
$sb.parent().append($overlay);

_calcScaling();
Expand Down

0 comments on commit 716bfe6

Please sign in to comment.