-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maurice Fonk
committed
Jan 24, 2012
1 parent
0a09709
commit b9f0c99
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Set up the global "namespace" for Gunther to live in | ||
Gunther = {} | ||
|
||
# Export Gunther to the global scope | ||
window.Gunther = Gunther | ||
|
||
# Export through CommonJS if we have a require function | ||
# This is a tad hacky for now | ||
module.exports = Gunther if (typeof require)? | ||
# | ||
if (typeof require)? | ||
module.exports = Gunther | ||
else | ||
# Export Gunther to the global scope | ||
window.Gunther = Gunther |