From 845f6bb6f2e237d750b203a3b93d113a44a521c4 Mon Sep 17 00:00:00 2001 From: Jeremy Scheff Date: Tue, 5 Nov 2024 14:02:10 -0500 Subject: [PATCH] Fix polyfill --- TODO | 8 -------- src/common/polyfills-modern.ts | 6 +++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/TODO b/TODO index f020ffd51..ef2adc9b1 100644 --- a/TODO +++ b/TODO @@ -1,11 +1,3 @@ -store results of trading block in database -- blog - - clear if you don't have all your assets - - warning if asset traded - - warning if AI team no longer wants to make trade -- https://old.reddit.com/r/BasketballGM/comments/xsglap/monthly_suggestions_thread/iqkeufr/ -- test in old browsers (set isSubsetOf) - hype should impact the magnitude of the home court advantage support sorting mobile trade tables (like saved trades, trading block) diff --git a/src/common/polyfills-modern.ts b/src/common/polyfills-modern.ts index 8918a1412..f6b34ba22 100644 --- a/src/common/polyfills-modern.ts +++ b/src/common/polyfills-modern.ts @@ -14,9 +14,9 @@ export const toPolyfillTransform: ( // https://github.com/rauschma/set-methods-polyfill/blob/894c17391303aec7190801636c64465f653479d8/src/library.ts if (!Set.prototype.isSubsetOf) { Object.defineProperty(Set.prototype, "isSubsetOf", { - value: function (a: Set, b: Set): boolean { - for (const elem of a) { - if (!b.has(elem)) { + value: function (this: Set, other: Set): boolean { + for (const elem of this) { + if (!other.has(elem)) { return false; } }