[autocomplete] Minor fixes required in order to play nice with other libraries that extend Object (code inside)
|Reported by:||bramus||Owned by:|
(also posted this at the jquery-en list, yet this one here has a .diff attached ;))
Hi Jörn et all here at the list,
I'm using the autocomplete plugin in a project I'm working on and I must say: it works great!. However: one part of the project uses ExtJS (their tree component is great) and that's where things go wrong. Problem is that somewhere in ExtJS they extend Object with a remove() function, breaking jQuery.autocomplete.
After a little quest I found that - quite obviously - autocomplete breaks on string manipulations (Function.toLowerCase() doesn't really exist ;)) and has a minor issue when displaying the items whenever some library has extended Object.
Hereby attached a little .diff containing the 2 minor changes I implemented in order to make things work "just fine" again. Could you tuck 'm into the release as I can't commit any changes to the trunk.