From 0910e6cf4e197782c35a3bc9a5bfda86dba1a255 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Fri, 17 Apr 2020 22:53:12 +0300 Subject: [PATCH] Fix reference to undefined variable --- src/scripts/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/browser.js b/src/scripts/browser.js index f89df82c0c..8b21c85469 100644 --- a/src/scripts/browser.js +++ b/src/scripts/browser.js @@ -77,10 +77,10 @@ define([], function () { var camel = prop.replace(/-([a-z]|[0-9])/ig, function (all, letter) { return (letter + '').toUpperCase(); }); - // Check if the property is supported - var support = (camel in el.style); // Create test element var el = document.createElement('div'); + // Check if the property is supported + var support = (camel in el.style); // Assign the property and value to invoke // the CSS interpreter el.style.cssText = prop + ':' + value;