From 148920f2f9393dac04e34492a550197b92438264 Mon Sep 17 00:00:00 2001 From: dkanada Date: Sat, 18 Apr 2020 10:56:09 +0900 Subject: [PATCH] Merge pull request #1104 from dmitrylyzo/fix-undefined-variable Fix reference to undefined variable (cherry picked from commit 7646c1768807d7f1b25addaecd408dab2cc0c5cf) Signed-off-by: Joshua M. Boniface --- 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 f9e1942320..bb4bdf6945 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;