Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setMask: function() {
Inputmask.extendDefinitions({
'2': {
'validator': '[2-9]'
}
});
if (!this.element) {
return;
}
var mask = this.get('mask'), options = this.get('options');
if (this.element.inputmask) {
this.element.inputmask.remove();
}
var inputmask = new Inputmask(mask, options);