mirror of
https://github.com/nasa/openmct.git
synced 2025-06-05 00:50:49 +00:00
Trigger digests when bounds are set
This commit is contained in:
parent
0e0ad64830
commit
af7954c5a1
@ -145,6 +145,13 @@ define(
|
|||||||
TimeConductorController.prototype.setBounds = function (bounds) {
|
TimeConductorController.prototype.setBounds = function (bounds) {
|
||||||
this.$scope.formModel.start = bounds.start;
|
this.$scope.formModel.start = bounds.start;
|
||||||
this.$scope.formModel.end = bounds.end;
|
this.$scope.formModel.end = bounds.end;
|
||||||
|
if (!this.pendingUpdate) {
|
||||||
|
this.pendingUpdate = true;
|
||||||
|
requestAnimationFrame(function () {
|
||||||
|
this.pendingUpdate = false;
|
||||||
|
this.$scope.$digest();
|
||||||
|
}.bind(this));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user