From 081f333298553ee3fef0209bd911f18f06a7ee68 Mon Sep 17 00:00:00 2001 From: Michael Start Date: Fri, 26 Jul 2019 09:59:25 -0500 Subject: [PATCH] Declare vars for string constants to avoid strict mode errors. --- css_grid_annotator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/css_grid_annotator.js b/css_grid_annotator.js index 9b7c185..2917940 100644 --- a/css_grid_annotator.js +++ b/css_grid_annotator.js @@ -16,10 +16,10 @@ function cssGridAnnotate() { return; } - CSS_DISPLAY_GRID = "-ms-grid"; - CSS_TEMPLATE_COLS = "-ms-grid-columns"; - CSS_ROW = "-ms-grid-row"; - CSS_COL = "-ms-grid-column"; + var CSS_DISPLAY_GRID = "-ms-grid"; + var CSS_TEMPLATE_COLS = "-ms-grid-columns"; + var CSS_ROW = "-ms-grid-row"; + var CSS_COL = "-ms-grid-column"; function annotateAll(parentElement) { // we have to go through every single element to check the computed style