Skip to content

Commit

Permalink
Trigger digests when bounds are set
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Richards committed Aug 5, 2016
1 parent 0e0ad64 commit af7954c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,13 @@ define(
TimeConductorController.prototype.setBounds = function (bounds) {
this.$scope.formModel.start = bounds.start;
this.$scope.formModel.end = bounds.end;
if (!this.pendingUpdate) {
this.pendingUpdate = true;
requestAnimationFrame(function () {
this.pendingUpdate = false;
this.$scope.$digest();
}.bind(this));
}
};

/**
Expand Down

0 comments on commit af7954c

Please sign in to comment.