source: [view]
this.disconnect(this._listener);
this.disconnect(this._keyListener);
if(this.fileInput){
this.domNode.removeChild(this.fileInput);
}
dojo.fadeOut({ node: this.cancelNode, duration:275 }).play();
// should we use cloneNode()? can we?
this.fileInput = document.createElement('input');
// dojo.attr(this.fileInput,{
// "type":"file", "id":this.id, "name": this.name
//});
this.fileInput.setAttribute("type","file");
this.fileInput.setAttribute("id", this.id);
this.fileInput.setAttribute("name", this.name);
dojo.addClass(this.fileInput,"dijitFileInputReal");
this.domNode.appendChild(this.fileInput);
this._keyListener = this.connect(this.fileInput, "onkeyup", "_matchValue");
this._listener = this.connect(this.fileInput, "onchange", "_matchValue");
this.inputNode.value = "";