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

Fixing code in sync functionality of checkbox-list #4974

Merged
merged 2 commits into from
Mar 22, 2019

Conversation

nielslyngsoe
Copy link
Member

The pre-existing code in the updateViewModel of checkboxlist.controller.js didn't make sense and was not working. So I have changed the code for a working and readable solution.


//if the length is zero, then we are in sync, just exit.
if (_.difference($scope.model.value, selectedVals).length === 0) {
debugger;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the debugger

@bergmania bergmania self-assigned this Mar 22, 2019
@ghost ghost assigned nielslyngsoe Mar 22, 2019
@bergmania bergmania merged commit 99ebe13 into dev-v8 Mar 22, 2019
@ghost ghost removed the state/review label Mar 22, 2019
@bergmania bergmania deleted the temp8-fix-conditional-sync-of-checkboxlist branch March 22, 2019 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants