Permalink
Browse files

fix UMD: use this instead of window for global

  • Loading branch information...
1 parent 0d413a6 commit e291fe6c1750687ff8477c1b8532d2a4b1bf4276 @tj tj committed Apr 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/component-build
View
@@ -126,7 +126,7 @@ builder.build(function(err, obj){
'} else if (typeof define == "function" && define.amd) {',
' define(function(){ return require("' + conf.name + '"); });',
'} else {',
- ' window["' + name + '"] = require("' + conf.name + '");',
+ ' this["' + name + '"] = require("' + conf.name + '");',
'}'
];

0 comments on commit e291fe6

Please sign in to comment.