Permalink
Browse files

fixed module warning

  • Loading branch information...
1 parent 65eddfe commit 770fe2a2225dbb17a893db1421b976fb6c2f5f74 @linshun linshun committed Sep 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 box2d/box2d.js
View
@@ -10877,4 +10877,6 @@ var i;
for (i = 0; i < Box2D.postDefs.length; ++i) Box2D.postDefs[i]();
delete Box2D.postDefs;
-module.exports = Box2D;
+if (typeof require !== 'undefined') {
+ module.exports = Box2D;
+}

0 comments on commit 770fe2a

Please sign in to comment.