hgweb: add missing semicolons to followlines.js
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 10 Nov 2017 19:14:06 +0800
changeset 35020 75013952d8d9
parent 35019 b445fc69b86c
child 35037 da5d5ea7d696
hgweb: add missing semicolons to followlines.js Minor stylistic issues caught by jshint.
mercurial/templates/static/followlines.js
--- a/mercurial/templates/static/followlines.js	Fri Nov 10 18:50:44 2017 +0800
+++ b/mercurial/templates/static/followlines.js	Fri Nov 10 19:14:06 2017 +0800
@@ -38,7 +38,7 @@
     // element
     var selectableElements = Array.prototype.filter.call(
         sourcelines.children,
-        function(x) { return x.tagName === selectableTag });
+        function(x) { return x.tagName === selectableTag; });
 
     var btnTitleStart = 'start following lines history from here';
     var btnTitleEnd = 'terminate line block selection here';
@@ -62,7 +62,7 @@
     }
 
     // extend DOM with CSS class for selection highlight and action buttons
-    var followlinesButtons = []
+    var followlinesButtons = [];
     for (var i = 0; i < selectableElements.length; i++) {
         selectableElements[i].classList.add('followlines-select');
         var btn = createButton();