             closed: closed
             percentage: if total then ((closed * 100) / total).toFixed(1) else 0.0
 
-    normalizeMilestones: ->
+    normalizeMilestones: =>
         saveChangedMilestone = =>
             console.log "saveChangedMilestone"
             for item, index in @scope.ml.user_stories

        @scope.form = form
        @scope.bulkFormOpened = true

    submit: gm.utils.safeDebounced @scope, 400, ->
        promise = @rs.createBulkUserStories(@scope.projectId, @scope.form)
        @scope.$emit("spinner:start")


    toggleViewUSs: ->
        @scope.viewUSs = not @scope.viewUSs

    # Debounced Method (see debounceMethods method)
    submit: =>
        promise = @scope.ml.save()

        promise.then (data) =>
