Skip to content

Commit 690510b

Browse files
committed
fixes to BVC classes
1 parent 7929fe2 commit 690510b

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

widgets/+wt/+abstract/BaseViewChart.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
end
5252

5353
% Call superclass constructors
54-
obj = obj@matlab.graphics.chartcontainer.ChartContainer(parent, varargin{:});
55-
obj@wt.mixin.ModelObserver();
54+
% ModelObserver is first to establish model set listeners
55+
% before assigning inputs
56+
obj = obj@wt.mixin.ModelObserver();
57+
obj@matlab.graphics.chartcontainer.ChartContainer(parent, varargin{:});
58+
5659

5760
end %function
5861
end %methods

widgets/+wt/+abstract/BaseViewController.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@
6666
% Constructor
6767

6868
% Call superclass constructors
69-
obj = obj@matlab.ui.componentcontainer.ComponentContainer(varargin{:});
70-
obj@wt.mixin.ModelObserver();
69+
% ModelObserver is first to establish model set listeners
70+
% before assigning inputs
71+
obj = obj@wt.mixin.ModelObserver();
72+
obj@matlab.ui.componentcontainer.ComponentContainer(varargin{:});
7173

7274
% Listen to theme changes (R2025a and later only)
7375
if ~isMATLABReleaseOlderThan("R2025a")

0 commit comments

Comments
 (0)