mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-24 21:57:37 +00:00
Specify jsdoc type for jQuery parameter
This commit is contained in:
parent
f91b4af950
commit
aeb4e384b6
@ -19,23 +19,25 @@
|
|||||||
// Browser globals
|
// Browser globals
|
||||||
factory(jQuery);
|
factory(jQuery);
|
||||||
}
|
}
|
||||||
})(function ($) {
|
})(
|
||||||
|
/**
|
||||||
|
* @param {jQuery} $
|
||||||
|
*/
|
||||||
|
function ($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = (function () {
|
var utils = {
|
||||||
return {
|
escapeRegExChars: function (value) {
|
||||||
escapeRegExChars: function (value) {
|
return value.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
||||||
return value.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
},
|
||||||
},
|
createNode: function (containerClass) {
|
||||||
createNode: function (containerClass) {
|
var div = document.createElement('div');
|
||||||
var div = document.createElement('div');
|
div.className = containerClass;
|
||||||
div.className = containerClass;
|
div.style.position = 'absolute';
|
||||||
div.style.position = 'absolute';
|
div.style.display = 'none';
|
||||||
div.style.display = 'none';
|
return div;
|
||||||
return div;
|
},
|
||||||
},
|
},
|
||||||
};
|
|
||||||
})(),
|
|
||||||
keys = {
|
keys = {
|
||||||
ESC: 27,
|
ESC: 27,
|
||||||
TAB: 9,
|
TAB: 9,
|
||||||
|
Loading…
Reference in New Issue
Block a user