From 6b95a7c6f6994a0ec59ff863c11fd95503c467e7 Mon Sep 17 00:00:00 2001 From: bbeirnaert Date: Thu, 3 Dec 2015 15:39:45 +0100 Subject: [PATCH] Apply the method to window explicitely To include respond.js using webpack, it is required to have the scope specified explicitly to window (instead of this), since it is enclosed in an import function where this is not window. --- src/matchmedia.polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matchmedia.polyfill.js b/src/matchmedia.polyfill.js index 12d2b95f..6077e36c 100644 --- a/src/matchmedia.polyfill.js +++ b/src/matchmedia.polyfill.js @@ -33,4 +33,4 @@ }; }( w.document )); -}( this )); +}( window ));