Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference to non-existent parameter 'remArgs' in PropertyChangedData class #75

Open
slootsjj opened this issue Apr 19, 2024 · 0 comments · May be fixed by #76
Open

Reference to non-existent parameter 'remArgs' in PropertyChangedData class #75

slootsjj opened this issue Apr 19, 2024 · 0 comments · May be fixed by #76

Comments

@slootsjj
Copy link
Contributor

Class wt.eventdata.PropertyChangedData references the non-existent parameter 'remArgs'.

Change:

% Any remaining varargin are dynamic property-value pairs
for idx=1:numel(varargin)
    thisProp = varargin{idx};
    thisValue = remArgs.(thisProp);
    obj.addprop(thisProp);
    obj.(thisProp) = thisValue;
end

To:

% Any remaining varargin are dynamic property-value pairs
for idx = 1:floor(numel(varargin) / 2)
    thisProp = varargin{(idx - 1) * 2 + 1};
    thisValue = varargin{(idx - 1) * 2 + 2};
    obj.addprop(thisProp);
    obj.(thisProp) = thisValue;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant