(el)
| 260 | } |
| 261 | |
| 262 | setupImask (el) { |
| 263 | /* Enable imask.js support if library is loaded and config is available */ |
| 264 | const options = this.expandCallbacks('imask', extend({}, this.defaults.options.imask || {}, this.options.imask || {})) |
| 265 | if (typeof options === 'object' && Object.keys(options).length > 0) { |
| 266 | this.imask_instance = window.IMask(el, this.ajustIMaskOptions(options)) |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | ajustIMaskOptions (obj) { |
| 271 | /* iMask config format is not JSON friendly, so function and regex based mask */ |
no test coverage detected