code: function() {
        // Call this function only when this.el AND this.listEl are available
        if(!this._nElementsReady) { this._nElementsReady = 0; }
        this._nElementsReady++;
        if(this._nElementsReady != 2) return;
  
        if(!lang.isUndefined(this.options.datasourceParameters))
        {
           for (param in this.options.datasourceParameters)
           {
              this.options.datasource[param] = this.options.datasourceParameters[param];
           }
        }
  
        
        // Instantiate AutoComplete
        this.oAutoComp = new YAHOO.widget.AutoComplete(this.el.id, this.listEl.id, this.options.datasource, this.options.autoComp);
        if(!lang.isUndefined(this.options.generateRequest))
        {
            this.oAutoComp.generateRequest = this.options.generateRequest;
        }
        // subscribe to the itemSelect event
        this.oAutoComp.itemSelectEvent.subscribe(this.itemSelectHandler, this, true);
        
        // subscribe to the textboxBlur event (instead of "blur" event on this.el)
        //                                    |-------------- autocompleter ----------|
        //    -> order : "blur" on this.el -> internal callback -> textboxBlur event -> this.onBlur callback
        //    -> so fired after autocomp internal "blur" callback (which would erase typeInvite...)
        this.oAutoComp.textboxBlurEvent.subscribe(this.onBlur, this, true);
     }
docs: Build the YUI autocompleter