I'm trying to understand jimu CheckBox.js check function.
Specifically, I'm wondering why checked class is added and then removed?
html.addClass(this.checkNode, 'checked jimu-icon-checked');
html.removeClass(this.checkNode, 'checked jimu-icon-checkbox');
As opposed to:
html.addClass(this.checkNode, 'checked jimu-icon-checked');
html.removeClass(this.checkNode, 'jimu-icon-checkbox');
Andrew,
Because jimu-icon-checked is the colored background with the check and jimu-icon-checkbox is just the square with the outline (the box) without a check.
Isn't the checked class the check?
Nope. If you check the jimu.css the checked class is never used.