Skip to content

Commit

Permalink
exporting gunther proplery
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Fonk committed Jan 24, 2012
1 parent 0a09709 commit b9f0c99
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/root.coffee
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

0 comments on commit b9f0c99

Please sign in to comment.