if(!this.hasDownArrow){this.baseClass = "dijitTextBox";
}if(!this.store){var srcNodeRef = this.srcNodeRef;
// if user didn't specify store, then assume there are option tagsthis.store = newdijit.form._ComboBoxDataStore(srcNodeRef);
// if there is no value set and there is an option list, set// the value to the first value to be consistent with native// Select// Firefox and Safari set value// IE6 and Opera set selectedIndex, which is automatically set// by the selected attribute of an option tag// IE6 does not set value, Opera sets value = selectedIndexif(!this.value||((typeof srcNodeRef.selectedIndex == "number")&&
srcNodeRef.selectedIndex.toString() === this.value)){varitem = this.store.fetchSelectedItem();
if(item){this.value = this.store.getValue(item, this._getValueField());
}}}