Merge pull request #932 from NativeScript/browserify-add-global

Add global object as another fallback.
This commit is contained in:
Guillermo Rauch
2016-01-07 17:20:39 -08:00

View File

@@ -48,5 +48,6 @@ function build(fn){
function glob(){
return 'typeof self !== "undefined" ? self : '
+ 'typeof window !== "undefined" ? window : {}';
+ 'typeof window !== "undefined" ? window : '
+ 'typeof global !== "undefined" ? global : {}';
}