Permalink
Browse files

window.part

  • Loading branch information...
arlolra committed Feb 9, 2012
1 parent 2b39fbc commit 21cdc883e9fc2c5f7df2bdd9a52d8b9e4c1ee3ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/express-expose.js
View
@@ -215,7 +215,7 @@ function renderNamespace(str){
return str.split('.').map(function(part, i){
parts.push(part);
part = parts.join('.');
- return (i ? '' : 'var ') + part + ' = ' + part + ' || {};';
+ return (i ? '' : 'window.') + part + ' = window.' + part + ' || {};';
}).join('\n');
}

0 comments on commit 21cdc88

Please sign in to comment.