2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-16 15:29:02 +00:00

Specify jsdoc type for jQuery parameter

This commit is contained in:
Tomas Kirda 2023-10-10 19:28:12 -05:00
parent f91b4af950
commit aeb4e384b6

View File

@ -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,