code: function(element) {
      this.$element = $(element);
      this.pattern = String(this.$element.data('masked-input')) || '';
      this.inputLength = this.$element.val().length;
      this.allowKey = true;
      if (this.pattern !== '') {
        this.$element.attr('maxlength', this.pattern.length);
      }
    }
docs: MASKED INPUT CLASS DEFINITION ====================