Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions dist/jquery.easy-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -1137,14 +1137,14 @@ var EasyAutocomplete = (function (scope) {
config.get('list').onClickEvent();
config.get('list').onChooseEvent();
})
.mouseover(function () {
.on('mouseover', function () {

selectedElement = itemCounter;
selectElement(itemCounter);

config.get('list').onMouseOverEvent();
})
.mouseout(function () {
.on('mouseout', function () {
config.get('list').onMouseOutEvent();
})
.html(template.build(highlight(elementsValue, phrase), listData[j]));
Expand Down Expand Up @@ -1218,7 +1218,7 @@ var EasyAutocomplete = (function (scope) {
}

function bindFocusOut() {
$field.focusout(function () {
$field.on('focusout', function () {

var fieldValue = $field.val(),
phrase;
Expand Down Expand Up @@ -1246,7 +1246,7 @@ var EasyAutocomplete = (function (scope) {
function bindKeyup() {
$field
.off('keyup')
.keyup(function (event) {
.on('keyup', function (event) {

switch (event.keyCode) {

Expand Down Expand Up @@ -1444,7 +1444,7 @@ var EasyAutocomplete = (function (scope) {
return false;
}
})
.keydown(function (event) {
.on('keydown', function (event) {

if (event.keyCode === 13 && selectedElement > -1) {

Expand All @@ -1467,7 +1467,7 @@ var EasyAutocomplete = (function (scope) {
}

function bindFocus() {
$field.focus(function () {
$field.on('focus', function () {

if ($field.val() !== '' && elementsList.length > 0) {

Expand All @@ -1479,7 +1479,7 @@ var EasyAutocomplete = (function (scope) {
}

function bindBlur() {
$field.blur(function () {
$field.on('blur', function () {
setTimeout(function () {

selectedElement = -1;
Expand Down
Loading