Skip to content

Commit

Permalink
The match between file names and global var names stumbles if the fil…
Browse files Browse the repository at this point in the history
…e name has a dash.
  • Loading branch information
johnjbarton committed Feb 23, 2012
1 parent bd963c7 commit 1b32a67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion returnExports.js
Expand Up @@ -24,7 +24,8 @@
// AMD. Register as an anonymous module. // AMD. Register as an anonymous module.
define(['b'], factory); define(['b'], factory);
} else { } 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); root.returnExports = factory(root.b);
} }
}(this, function (b) { }(this, function (b) {
Expand Down

0 comments on commit 1b32a67

Please sign in to comment.