From 2e8a7bfc79c46dcb515af9d65a7fd683817ec0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kay=20Pl=C3=B6=C3=9Fer?= Date: Fri, 29 Apr 2016 13:29:54 +0200 Subject: [PATCH] Make library usable with strict mode "this" is undefined in strict mode (--use_strict), so a require() fails. Also this doesn't seem to be used anywhere in the script. --- geojson-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geojson-utils.js b/geojson-utils.js index cf66d7f..43ed4d4 100755 --- a/geojson-utils.js +++ b/geojson-utils.js @@ -1,5 +1,5 @@ (function () { - var gju = this.gju = {}; + var gju = {}; // Export the geojson object for **CommonJS** if (typeof module !== 'undefined' && module.exports) {