         @scope.form = form
         @scope.bulkFormOpened = true
 
-    submit: gm.utils.safeDebounced @scope, 400, ->
+    # Debounced Method (see debounceMethods method)
+    submit: =>
         promise = @rs.createBulkUserStories(@scope.projectId, @scope.form)
         @scope.$emit("spinner:start")
 

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

    submit: gm.utils.safeDebounced @scope, 400, ->
        promise = @scope.ml.save()

        promise.then (data) =>


class BacklogMilestoneController extends TaigaBaseController
    @.$inject = ['$scope', '$q', 'resource', '$gmFlash', '$i18next']
    constructor: (@scope, @q, @rs, @gmFlash, @i18next) ->
        super(scope)

    debounceMethods: ->
        submit = @submit
        @submit = gm.utils.safeDebounced @scope, 500, submit

    initialize: ->
        @debounceMethods()
        @scope.editFormOpened = false
        @scope.viewUSs = not @scope.ml.closed
        @calculateStats()

    calculateTotalPoints: (us) ->
        total = 0
