From 31d7d8460e40b5684be59324aec4c7767e7f9626 Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Mon, 15 Apr 2024 17:45:48 -0700 Subject: [PATCH] Last minute bug fix in `StyleManager` Changes Odd this wasn't caught in our initial specs. But this issue only effects specs, as the actual production code is able to assign the callback with a function reference rather than a string which is then used to assign the callback itself. --- src/style-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style-manager.js b/src/style-manager.js index 3ba0b4dbe1..f50baa5c8b 100644 --- a/src/style-manager.js +++ b/src/style-manager.js @@ -237,7 +237,7 @@ module.exports = class StyleManager { // Allows us to utilize a direct callback, or if calling from outside // StyleManager we can define a string that works if (upgradeName === "math") { - cb = upgradeDeprecatedMathUsageForStyleSheet; + cb = transformDeprecatedMathUsage; } else if (upgradeName === "selector") { cb = transformDeprecatedShadowDOMSelectors; } else if (typeof upgradeName === "function") {