Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #121 from amdprophet/client_deletion
Browse files Browse the repository at this point in the history
Wait for clients & events to be removed
  • Loading branch information
amdprophet committed Mar 27, 2013
2 parents 349eb15 + 9bb60d5 commit 7a6dd1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace "SensuDashboard.Models", (exports) ->
@successCallback = options.success
@errorCallback = options.error
@destroy
wait: true
success: (model, response, opts) =>
@successCallback.apply(this, [model, response, opts]) if @successCallback
error: (model, xhr, opts) =>
Expand Down
1 change: 1 addition & 0 deletions lib/sensu-dashboard/assets/javascripts/models/stash.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace "SensuDashboard.Models", (exports) ->
@successCallback = options.success
@errorCallback = options.error
@destroy
wait: true
success: (model, response, opts) =>
@successCallback.apply(this, [model, response, opts]) if @successCallback
error: (model, xhr, opts) =>
Expand Down

0 comments on commit 7a6dd1d

Please sign in to comment.