Found an issue in trunk version of jquery.autocomplete.js

Found an issue in trunk version of jquery.autocomplete.js

Hi,

I have found an issue with the latest (r3795) version of jquery.autocomplete.js. It is actually in the ui.menu widget that it in that file.

You can see the problem if you setup a simple ajax autocomplete and mouse over the results - a javascript error occurs.

The error occurs because of line 333-ish in the refresh function:

.mouseenter(function() {
    self.activate($(this).parent());
 });

At this point in the code, 'self' is a reference to the window object, rather than the menu object.

The problem is eliminated by declaring self at the start of the refresh function:

refresh: function() {
        var self = this;
...


I was not sure how, where or who to contact about this, so I thought the forum was a good a place as any

Dan