 
     makeIsValid = (options) ->
         validations = []
-        
+
         if options.maxDecimals?
             validations.push makeMaxDecimals options.maxDecimals
         if options.max?


                    # trigger final change event
                    triggerChange(elem)
                
                if isDelete(event) # delete is pressed
                  if elem[0].selectionEnd > elem[0].selectionStart # text is highlighted
                    # get the string before the selection and figure out how many commas it has

            validations.push makeMinNumber options.min
        if options.maxDigits?
            validations.push makeMaxDigits options.maxDigits

        (val) ->
            return false unless isNumber val
            return false if hasMultipleDecimals val
