   @on('keydown', formatBackCardNumber)
   @on('keyup', setCardType)
   @on('paste', reFormatCardNumber)
+  @on('change', reFormatCardNumber)
+  @on('input', reFormatCardNumber)
+  @on('input', setCardType)
   this
 
 # Restrictions

  # Remove the trailing space
  if /\d(\s|\/)+$/.test(value)
    e.preventDefault()
    $target.val(value.replace(/\d(\s|\/)*$/, ''))
  else if /\s\/\s?\d?$/.test(value)
    e.preventDefault()
    $target.val(value.replace(/\s\/\s?\d?$/, ''))

#  Restrictions


      luhn: true
  }
]

cardFromNumber = (num) ->
  num = (num + '').replace(/\D/g, '')
