code: function(sType, aArgs) {
     	var aData = aArgs[2];
     	var value = lang.isFunction(this.options.returnValue) ? this.options.returnValue(aData) : aData[0];
     	var label = lang.isFunction(this.options.returnLabel) ? this.options.returnLabel(aData) : value;   	
     	this.ddlist.addItem({label: label, value: value});
     	this.el.value = "";
     	this.fireUpdatedEvt();
     }
docs: Handle item selection in the autocompleter to add it to the list