From 8b18daee705145b6f1cc6912514af717f9ce5d39 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Mon, 26 Dec 2016 12:41:34 -0800 Subject: [PATCH] remove explicit `window.debug` export Exporting to the "outer" scope of the module is more the responsibility of the module loader (i.e. browserify, webpack, etc.) and thus this is not necessary. `make test-browser` still passes after this patch. --- src/browser.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/browser.js b/src/browser.js index 006a8c11..2c10d4d6 100644 --- a/src/browser.js +++ b/src/browser.js @@ -180,8 +180,3 @@ function localstorage() { return window.localStorage; } catch (e) {} } - -/** Attach to Window*/ -if (typeof window !== 'undefined') { - window.debug = exports; -}