Dialog

Same thing here. Get rid of these three lines and just do:

this.setElementText(yes, confirm.title)