@@ -3325,6 +3325,7 @@ <h3>[[name]]</h3>
3325
3325
// if undefined, default value (enable for first k runs, disable after).
3326
3326
type: Object,
3327
3327
value: TF.URIStorage.getObjectInitializer('runSelectionState', {}),
3328
+ observer: "_storeRunToIsCheckedMapping",
3328
3329
},
3329
3330
// (Allows state to persist across regex filtering)
3330
3331
outSelected: {
@@ -3373,24 +3374,7 @@ <h3>[[name]]</h3>
3373
3374
},
3374
3375
observers: [
3375
3376
"_setIsolatorIcon(runSelectionState, names)",
3376
- "_storeRunToIsCheckedMappingWithDefault(runSelectionState, namesMatchingRegex)",
3377
3377
],
3378
- _storeRunToIsCheckedMappingWithDefault() {
3379
- var runSelectionStateIsDefault = Object.keys(this.runSelectionState).length == 0;
3380
- if (runSelectionStateIsDefault || this.namesMatchingRegex == null) {
3381
- return;
3382
- }
3383
- var _this = this;
3384
- var allToggledOn = this.namesMatchingRegex
3385
- .every(function(n) {return _this.runSelectionState[n]});
3386
- var allToggledOff = this.namesMatchingRegex
3387
- .every(function(n) {return !_this.runSelectionState[n]});
3388
- var defaultOff = this.namesMatchingRegex.length > this.maxRunsToEnableByDefault;
3389
- if (defaultOff && allToggledOff || !defaultOff && allToggledOn) {
3390
- this.runSelectionState = {};
3391
- }
3392
- this._storeRunToIsCheckedMapping(this.runSelectionState);
3393
- },
3394
3378
_storeRunToIsCheckedMapping: TF.URIStorage.getObjectObserver('runSelectionState', {}),
3395
3379
_makeRegex: function(regex) {
3396
3380
try {
0 commit comments