Permalink
Browse files

make jsbundleMocks work in node.js

  • Loading branch information...
1 parent 5aff74f commit 60575cdd4e11091b8bd450d7e7943ad63bbe5c9b Paul Baumgart committed Aug 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tmpl/bundle.tmpl
View
@@ -3,7 +3,7 @@
var _$_modules = {};
var _$_mainModuleId = @mainModuleId;
var _$_moduleMap = @moduleMap;
- var _$_mockedModules = self.jsbundleMocks;
+ var _$_mockedModules = (typeof self !== 'undefined' ? self.jsbundleMocks : global.jsbundleMocks);
var _$_hasOwnProp = Object.prototype.hasOwnProperty;
function _$_mock(idSubstring, mockExports) {

0 comments on commit 60575cd

Please sign in to comment.