mirror of
https://github.com/nasa/openmct.git
synced 2025-04-17 15:59:09 +00:00
[Common UI] Only trigger digest on change
...from mct-split-pane.
This commit is contained in:
parent
861ea8bab7
commit
3a3829682c
@ -164,14 +164,14 @@ define(
|
||||
// Getter-setter for the pixel offset of the splitter,
|
||||
// relative to the current edge.
|
||||
function getSetPosition(value) {
|
||||
var min, max;
|
||||
var min, max, prior = position;
|
||||
if (typeof value === 'number') {
|
||||
position = value;
|
||||
enforceExtrema();
|
||||
updateElementPositions();
|
||||
|
||||
// Pass change up so this state can be shared
|
||||
if (positionParsed.assign) {
|
||||
if (positionParsed.assign && position !== prior) {
|
||||
positionParsed.assign($scope, position);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user