Skip to main content

Search and Top Navigation

#5176 closed bug (notabug)

Opened February 12, 2010 09:21PM UTC

Closed February 12, 2010 09:22PM UTC

Last modified February 12, 2010 09:23PM UTC

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

Reported by: Rwhitbeck Owned by:
Priority: blocker Milestone: 1.8
Component: ui.autocomplete Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

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;

...

Attachments (0)
Change History (2)

Changed February 12, 2010 09:22PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

Closing invalid; fixed but never released.

Changed February 12, 2010 09:23PM UTC by scottgonzalez comment:2

To clarify, the bug was never released, closed invalid just to ensure it doesn't show up on the changelog.