Closed dbaron closed 2 years ago
The CSSToggle constructor should throw an exception in the same cases (duplicate names) that setStates throws an exception.
(If it doesn't, then (a) it's not clear what to do and (b) it's not clear why setStates bothers to enforce this invariant.)
The CSSToggle constructor should throw an exception in the same cases (duplicate names) that setStates throws an exception.
(If it doesn't, then (a) it's not clear what to do and (b) it's not clear why setStates bothers to enforce this invariant.)