Skip to content

Commit

Permalink
Merge pull request #91 from iamolivinius/patch-1
Browse files Browse the repository at this point in the history
Get correct global object in Firefox extensions, close #86
  • Loading branch information
zloirock committed Jul 10, 2015
2 parents 02fdcf3 + 40f5db1 commit 7985026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/$.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
var global = typeof self != 'undefined' ? self : Function('return this')()
var global = typeof self == 'object' && self.Math == Math ? self : Function('return this')()
, core = {}
, defineProperty = Object.defineProperty
, hasOwnProperty = {}.hasOwnProperty
Expand Down Expand Up @@ -93,4 +93,4 @@ var $ = module.exports = require('./$.fw')({
});
/* eslint-disable no-undef */
if(typeof __e != 'undefined')__e = core;
if(typeof __g != 'undefined')__g = global;
if(typeof __g != 'undefined')__g = global;

0 comments on commit 7985026

Please sign in to comment.