Permalink
Browse files

[fix] Can now use in browser without breaking

  • Loading branch information...
1 parent d38f219 commit 55d66ea6316a36c864bb1a73a8e97af014883e67 @jfhbrook jfhbrook committed Nov 23, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/plates.js
View
@@ -149,7 +149,8 @@
}();
-
-module && (exports.bind = function() {
- return Plates.bind.apply(this, arguments);
-});
+if (typeof module !== 'undefined') {
+ exports.bind = function() {
+ return Plates.bind.apply(this, arguments);
+ };
+}

0 comments on commit 55d66ea

Please sign in to comment.