this.menu.element = null

this.menu.element = null

Hi,

I am new to using jQueryUI and I have come across an issue in a previously created code. I am using jqueryUI 1.8.20 to populate an autocomplete box. 

When the code hits the line this.menu.element I get an undefined value. The code worked fine up until a few days ago and I can't decipher what I have done to cause the issue, any help would be greatly appreciated.

The snippet of code that is throwing the error is:

_suggest: function( items ) {
var ul = $this.menu.element
.empty()
.zIndex( this.element.zIndex() + 1 );
$this._renderMenu( ul, items );