Skip to content

Commit

Permalink
Specify jsdoc type for jQuery parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tkirda committed Oct 11, 2023
1 parent f91b4af commit aeb4e38
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/jquery.autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,25 @@
// Browser globals
factory(jQuery);
}
})(function ($) {
})(
/**
* @param {jQuery} $
*/
function ($) {
'use strict';

var utils = (function () {
return {
escapeRegExChars: function (value) {
return value.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
},
createNode: function (containerClass) {
var div = document.createElement('div');
div.className = containerClass;
div.style.position = 'absolute';
div.style.display = 'none';
return div;
},
};
})(),
var utils = {
escapeRegExChars: function (value) {
return value.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
},
createNode: function (containerClass) {
var div = document.createElement('div');
div.className = containerClass;
div.style.position = 'absolute';
div.style.display = 'none';
return div;
},
},
keys = {
ESC: 27,
TAB: 9,
Expand Down

0 comments on commit aeb4e38

Please sign in to comment.