 
             elem.on 'keyup', ->
               triggerUpdate = ()->
-                # $parse attrs.debounceUpdate
-                # alert(elem.val().replace(/,/g, ''))
-                # alert(scope.grade.raw_score)
-                # if elem.val().replace(/,/g,'') != scope.grade.raw_score
                 if scope.grade.raw_score != elem.val()
                   scope.grade.customUpdate(elem.val())
                 scope.rawScoreUpdating = false

    # 44 is ',', 45 is '-', 57 is '9' and 47 is '/'
    isNotDigit = (which) ->
        (which < 44 || which > 57 || which is 47)

    controlKeys = [0,8,13] # 0 = tab, 8 = backspace , 13 = enter
    isNotControlKey = (which) ->


    defaultOptions = fcsaNumberConfig.defaultOptions

    getOptions = (scope, attrs) ->
        options = angular.copy defaultOptions
        if attrs.fcsaOptions?
            # alert("fcsa-options!!")
            for own option, value of scope.$eval(attrs.fcsaOptions)
                options[option] = value
        options
    
