Commit 9f69e009 authored by alexpott's avatar alexpott

Issue #1684792 by droplet, nod_: JSHint autocomplete.js.

parent c5b9bb0b
......@@ -221,15 +221,15 @@ Drupal.jsAC.prototype.found = function (matches) {
}
// Prepare matches.
var ul = $('<ul></ul>');
var ac = this;
var ul = $('<ul></ul>')
.on('mousedown', 'li', function (e) { ac.select(this); })
.on('mouseover', 'li', function (e) { ac.highlight(this); })
.on('mouseout', 'li', function (e) { ac.unhighlight(this); });
for (var key in matches) {
if (matches.hasOwnProperty(key)) {
$('<li></li>')
.html($('<div></div>').html(matches[key]))
.mousedown(function () { ac.select(this); })
.mouseover(function () { ac.highlight(this); })
.mouseout(function () { ac.unhighlight(this); })
.data('autocompleteValue', key)
.appendTo(ul);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment