From c195a0ebab8d8b6f1fbb67fed56d4a4e8a4cc66f Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Fri, 29 Aug 2014 16:07:40 +0100 Subject: [PATCH] In a browserify package, this will refer to a node-style exports object, not window. So just reference window directly. --- plugins/angular.js | 2 +- plugins/backbone.js | 2 +- plugins/console.js | 2 +- plugins/ember.js | 2 +- plugins/jquery.js | 2 +- plugins/native.js | 2 +- plugins/require.js | 2 +- template/_footer.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/angular.js b/plugins/angular.js index 07fb3fc2e305..98bf58920015 100644 --- a/plugins/angular.js +++ b/plugins/angular.js @@ -33,4 +33,4 @@ angular.module('ngRaven', []) .config(['$provide', ngRavenProvider]) .value('Raven', Raven); -})(Raven, window.angular); +})(window.Raven, window.angular); diff --git a/plugins/backbone.js b/plugins/backbone.js index ca86a674f07d..1d0211a025df 100644 --- a/plugins/backbone.js +++ b/plugins/backbone.js @@ -37,4 +37,4 @@ for (; i < l; i++) { affected.bind = affected.on; } -}(this, Raven, window.Backbone)); +}(window, window.Raven, window.Backbone)); diff --git a/plugins/console.js b/plugins/console.js index d3a3a82a4b53..cfe33430088a 100644 --- a/plugins/console.js +++ b/plugins/console.js @@ -37,4 +37,4 @@ while(level) { // export window.console = console; -}(this, Raven, window.console || {})); +}(window, window.Raven, window.console || {})); diff --git a/plugins/ember.js b/plugins/ember.js index ad32138effe5..0ea8a968099e 100644 --- a/plugins/ember.js +++ b/plugins/ember.js @@ -20,4 +20,4 @@ Ember.onerror = function EmberOnError(error) { }; -}(this, Raven, window.Ember)); +}(window, window.Raven, window.Ember)); diff --git a/plugins/jquery.js b/plugins/jquery.js index 2718507ec884..4a5474cdb86d 100644 --- a/plugins/jquery.js +++ b/plugins/jquery.js @@ -72,4 +72,4 @@ $.ajax = function ravenAjaxWrapper(url, options) { } }; -}(this, Raven, window.jQuery)); +}(window, window.Raven, window.jQuery)); diff --git a/plugins/native.js b/plugins/native.js index c4cb2d328b3d..05b0c1e342e5 100644 --- a/plugins/native.js +++ b/plugins/native.js @@ -30,4 +30,4 @@ var _helper = function _helper(fnName) { _helper('setTimeout'); _helper('setInterval'); -}(this, Raven)); +}(window, window.Raven)); diff --git a/plugins/require.js b/plugins/require.js index 9378aa107774..60378a1b0b9b 100644 --- a/plugins/require.js +++ b/plugins/require.js @@ -11,4 +11,4 @@ if (typeof define === 'function' && define.amd) { window.require = Raven.wrap({deep: false}, require); } -}(this, Raven)); +}(window, window.Raven)); diff --git a/template/_footer.js b/template/_footer.js index e15c9ebff72b..0a9efcc022a6 100644 --- a/template/_footer.js +++ b/template/_footer.js @@ -6,4 +6,4 @@ if (typeof define === 'function' && define.amd) { define('raven', [], function() { return Raven; }); } -})(this); +})(window);