Skip to content

Commit

Permalink
Adding explicit AMD module check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Berrios authored and icambron committed Oct 2, 2017
1 parent e50b579 commit 0c0c612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/twix.coffee
Expand Up @@ -454,7 +454,7 @@ makeTwix = (moment) ->
# -- MAKE AVAILABLE
return module.exports = makeTwix(require 'moment') if hasModule

if typeof(define) == 'function'
if typeof(define) == 'function' && define.amd
define 'twix', ['moment'], (moment) -> makeTwix(moment)


Expand Down

0 comments on commit 0c0c612

Please sign in to comment.