Skip to content

Commit

Permalink
Test if require is AMD, fixes #21 (thanks @timmywil & @SlexAxton)
Browse files Browse the repository at this point in the history
  • Loading branch information
gf3 committed Jul 15, 2013
1 parent 90cf458 commit 02197e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/moment-range.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/moment-range.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
moment =
if require?
if require? and !require.amd
require "moment"
else
@moment
Expand Down

0 comments on commit 02197e0

Please sign in to comment.