From d1a1f1748a900333dd7fcc33ad2324ba5a82dc32 Mon Sep 17 00:00:00 2001 From: danzel Date: Mon, 29 Oct 2012 11:49:51 +1300 Subject: [PATCH] Make jshint happy --- src/dom/DomUtil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dom/DomUtil.js b/src/dom/DomUtil.js index 4d89f2ca..724a1773 100644 --- a/src/dom/DomUtil.js +++ b/src/dom/DomUtil.js @@ -63,7 +63,7 @@ L.DomUtil = { //ie7 shows the scrollbar by default and provides clientWidth counting it, so we need to add it back in if it is visible // Scrollbar is on the left as we are RTL - if (ie7 && L.DomUtil.getStyle(el, 'overflow-y') != 'hidden' && L.DomUtil.getStyle(el, 'overflow') != 'hidden') { + if (ie7 && L.DomUtil.getStyle(el, 'overflow-y') !== 'hidden' && L.DomUtil.getStyle(el, 'overflow') !== 'hidden') { left += 17; } } @@ -77,7 +77,7 @@ L.DomUtil = { documentIsLtr: function () { if (!L.DomUtil._docIsLtrCached) { L.DomUtil._docIsLtrCached = true; - L.DomUtil._docIsLtr = L.DomUtil.getStyle(document.body, 'direction') == "ltr"; + L.DomUtil._docIsLtr = L.DomUtil.getStyle(document.body, 'direction') === "ltr"; } return L.DomUtil._docIsLtr; },