// LensesToFindStorageUtils // getLensIds() // addToLensIds(lensId) // clear() // count() function LensesToFindStorageUtils() { this.storageUtils = newStorageUtils("LensesToFindStorageUtils"); this.getLensIds = this.storageUtils.getIds; // this.shouldWeHideLens = this.storageUtils.isFlagSet; this.getFirstLensId = function () { const lensIds = this.getLensIds(); if (lensIds.length < 1) return -1; return lensIds[0]; }; this.addToLensIds = function (lensId) { displayCurrentLensesCache.clear(); this.storageUtils.addToIds(lensId); }; this.removeFromLensIds = function (lensId) { displayCurrentLensesCache.clear(); this.storageUtils.removeFromIds(lensId); }; this.clear = function () { const logHeader = 'lensesToFindStorageUtils.clear: '; log(logHeader + 'enter'); log(logHeader + 'atc displayCurrentLensesCache.clear'); displayCurrentLensesCache.clear(); log(logHeader + 'bf displayCurrentLensesCache.clear'); log(logHeader + 'atc this.storageUtils.clear'); this.storageUtils.clear(); log(logHeader + 'bf this.storageUtils.clear'); log(logHeader + 'leave'); }; this.count = this.storageUtils.count; }