Permalink
Browse files

The match between file names and global var names stumbles if the fil…

…e name has a dash.
  • Loading branch information...
1 parent bd963c7 commit 1b32a674b5c8a2f99d733cf6de6a4e864b5e39c2 @johnjbarton committed Feb 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 returnExports.js
View
@@ -24,7 +24,8 @@
// AMD. Register as an anonymous module.
define(['b'], factory);
} else {
- // Browser globals
+ // Browser globals. If returnExports string is not a valid JS identifier,
+ // eg return-exports, use root['return-exports']
root.returnExports = factory(root.b);
}
}(this, function (b) {

0 comments on commit 1b32a67

Please sign in to comment.