From 363ac54509b8937ca168c27ccc0099c85354ed85 Mon Sep 17 00:00:00 2001 From: Petr Sloup Date: Fri, 5 Dec 2014 20:21:06 +0100 Subject: [PATCH] Suppress warning about dot notation (compiler would report undefined properties) --- examples/tileutfgrid.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/tileutfgrid.js b/examples/tileutfgrid.js index d0240e3728..5f0fca89a8 100644 --- a/examples/tileutfgrid.js +++ b/examples/tileutfgrid.js @@ -39,8 +39,10 @@ map.on('pointermove', function(evt) { // load the mustache.js library separately and call // info.innerHTML = Mustache.render(gridSource.getTemplate(), data); mapElement.style.cursor = data ? 'pointer' : ''; + /* jshint -W069 */ flag.src = data ? 'data:image/png;base64,' + data['flag_png'] : ''; flag.style.visibility = data ? 'visible' : 'hidden'; admin_name.innerHTML = data ? data['admin'] : ' '; + /* jshint +W069 */ }); });