diff --git a/components/selection/selection-mixin.js b/components/selection/selection-mixin.js index fd626cfbda4..f36bf1ee943 100644 --- a/components/selection/selection-mixin.js +++ b/components/selection/selection-mixin.js @@ -16,21 +16,21 @@ export class SelectionInfo { if (!allEnabledSelected) allEnabledSelected = false; if (!keys) keys = []; if (!state) state = SelectionInfo.states.none; - this._allEnabledSelected = allEnabledSelected; - this._keys = keys; - this._state = state; + this.#allEnabledSelected = allEnabledSelected; + this.#keys = keys; + this.#state = state; } get allEnabledSelected() { - return this._allEnabledSelected; + return this.#allEnabledSelected; } get keys() { - return this._keys; + return this.#keys; } get state() { - return this._state; + return this.#state; } static get states() { @@ -42,6 +42,10 @@ export class SelectionInfo { }; } + #allEnabledSelected; + #keys; + #state; + } export const SelectionMixin = superclass => class extends RtlMixin(CollectionMixin(superclass)) {