updateTypeInvite: function() {
// field not focused
if (!Y.one(this.divEl).hasClass( "inputEx-focused")) {
// show type invite if field is empty
if(this.isEmpty()) {
Y.one(this.divEl).addClass( "inputEx-typeInvite");
this.el.setAttribute("type","");
this.el.value = this.options.typeInvite;
// important for setValue to work with typeInvite
} else {
this.el.setAttribute("type","password");
Y.one(this.divEl).removeClass("inputEx-typeInvite");
}
// field focused : remove type invite
} else {
if(Y.one(this.divEl).hasClass("inputEx-typeInvite")) {
// remove text
this.el.value = "";
// remove the "empty" state and class
this.previousState = null;
this.el.setAttribute("type","password");
Y.one(this.divEl).removeClass("inputEx-typeInvite");
}
}
},