Skip to content

Commit 06fe840

Browse files
author
Tomas Kirda
committed
Rev for 1.2.17 release
1 parent 8e6812d commit 06fe840

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.2.16",
3+
"version": "1.2.17",
44
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
55
"authors": [
66
"Tomas Kirda"

devbridge-autocomplete.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ajax",
77
"autocomplete"
88
],
9-
"version": "1.2.16",
9+
"version": "1.2.17",
1010
"author": {
1111
"name": "Tomas Kirda",
1212
"url": "https://github.com/tkirda"

dist/jquery.autocomplete.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* Ajax Autocomplete for jQuery, version 1.2.16
3-
* (c) 2014 Tomas Kirda
2+
* Ajax Autocomplete for jQuery, version 1.2.17
3+
* (c) 2015 Tomas Kirda
44
*
55
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
66
* For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
@@ -612,7 +612,13 @@
612612
},
613613

614614
hide: function () {
615-
var that = this;
615+
var that = this,
616+
container = $(that.suggestionsContainer);
617+
618+
if ($.isFunction(that.options.onHide) && that.visible) {
619+
that.options.onHide.call(that.element, container);
620+
}
621+
616622
that.visible = false;
617623
that.selectedIndex = -1;
618624
clearInterval(that.onChangeInterval);
@@ -622,11 +628,11 @@
622628

623629
suggest: function () {
624630
if (this.suggestions.length === 0) {
625-
if (this.options.showNoSuggestionNotice) {
626-
this.noSuggestions();
627-
} else {
628-
this.hide();
629-
}
631+
if (this.options.showNoSuggestionNotice) {
632+
this.noSuggestions();
633+
} else {
634+
this.hide();
635+
}
630636
return;
631637
}
632638

dist/jquery.autocomplete.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = function(grunt) {
3232
grunt.registerTask('default', ['uglify']);
3333

3434
grunt.task.registerTask('build', 'Create release', function() {
35-
var version = pkg.version
35+
var version = pkg.version,
3636
src = grunt.file.read('src/jquery.autocomplete.js').replace('%version%', version),
3737
filePath = 'dist/jquery.autocomplete.js';
3838

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.2.16",
3+
"version": "1.2.17",
44
"description": "Autocomplete provides suggestions while you type into the text field.",
55
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
66
"author": "Tomas Kirda (https://twitter.com/tkirda)",

0 commit comments

Comments
 (0)