Skip to content

Commit

Permalink
Fixed AMD support
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelvillar committed Aug 14, 2015
1 parent 5345010 commit 17cb2c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dynamics.js",
"title": "Dynamics.js",
"description": "Javascript library to create physics-related animations",
"version": "0.0.7",
"version": "0.0.8",
"homepage": "http://dynamicsjs.com",
"author": "Michael Villar <me@michaelvillar.com> (http://twitter.com/michaelvillar)",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/dynamics.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1467,8 +1467,8 @@ dynamics.toggleSlow = ->
if typeof module == "object" and typeof module.exports == "object"
module.exports = dynamics
# AMD
else if typeof define == "function" and define.amd
define(dynamics)
else if typeof define == "function"
define('dynamics', -> dynamics)
# Global
else
window.dynamics = dynamics

0 comments on commit 17cb2c4

Please sign in to comment.