From 4ef474dd4b61c8697510d5156b3d98b2515ed931 Mon Sep 17 00:00:00 2001 From: Tomas Kirda Date: Tue, 10 Oct 2023 19:00:38 -0500 Subject: [PATCH] Cleanup build script --- gruntfile.js | 12 ------------ package.json | 1 + src/jquery.autocomplete.js | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 4c6847f..d5610f9 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -54,17 +54,5 @@ module.exports = function(grunt) { } else { console.log('No updates for: ' + filePath); } - - // Update bower version: - filePath = 'bower.json'; - src = grunt.file.readJSON(filePath); - - if (src.version !== version){ - src.version = version; - console.log('Updating: ' + filePath); - grunt.file.write(filePath, JSON.stringify(src, null, 4)); - } else { - console.log('No updates for: ' + filePath); - } }); }; \ No newline at end of file diff --git a/package.json b/package.json index 0569273..9832cc8 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "prettier": { "printWidth": 100, "singleQuote": true, + "trailingComma": "es5", "tabWidth": 4 }, "files": [ diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 3b58211..80b0e12 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -944,7 +944,7 @@ $(that.suggestionsContainer).scrollTop(offsetTop); } else if (offsetTop > lowerBound) { $(that.suggestionsContainer).scrollTop( - offsetTop - that.options.maxHeight + heightDelta, + offsetTop - that.options.maxHeight + heightDelta ); }