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

Commit

Permalink
only one save should be outstanding at any given time
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsa committed Oct 17, 2012
1 parent 0b80086 commit c66fda1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blissful.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ function ProjectController($scope, $http, $resource, $filter) {
return;
}
_save_timeout = setTimeout(function() {
_save_timeout = null;
$scope.save();
$scope.save(function() {
_save_timeout = null;
});
}, 1000);
}

Expand Down

0 comments on commit c66fda1

Please sign in to comment.