Permalink
Browse files

Fixed AMD support

  • Loading branch information...
1 parent 5345010 commit 17cb2c4ac0ece9430c897ca77dc7022ce26b8f1e @michaelvillar committed Aug 14, 2015
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 src/dynamics.coffee
View
@@ -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": {
View
@@ -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.