Merge branch 'gjs-global-object' of https://github.com/ptomato/jasmine into ptomato-gjs-global-object

This commit is contained in:
slackersoft
2015-01-26 12:21:26 -08:00
2 changed files with 8 additions and 2 deletions

View File

@@ -1,10 +1,13 @@
getJasmineRequireObj = (function (jasmineGlobal) {
var getJasmineRequireObj = (function (jasmineGlobal) {
var jasmineRequire;
if (typeof module !== 'undefined' && module.exports) {
jasmineGlobal = global;
jasmineRequire = exports;
} else {
if (typeof window !== 'undefined' && typeof window.toString === 'function' && window.toString() === '[object GjsGlobal]') {
jasmineGlobal = window;
}
jasmineRequire = jasmineGlobal.jasmineRequire = jasmineGlobal.jasmineRequire || {};
}