 
                     # trigger final change event
                     triggerChange(elem)
-              
+
             elem.on 'keypress', (event) ->
               killEvent(event)
 


                    # 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


                  ## replacing a selected area with a number character
                  if elem[0].selectionEnd > elem[0].selectionStart # text is highlighted

                    # get the string before the selection and figure out how many commas it has
                    originalCursorPosition = elem[0].selectionStart
                    stringBeforeCursor = elem.val().slice(0, originalCursorPosition)
