Permalink
Browse files

[commonjs] Make plates commonjs compatible by not assuming the exista…

…nce of `module.exports`. Fixes #96
  • Loading branch information...
1 parent 30eee56 commit 0d1638e233d9e9e464266c402975f6c9972d4ae9 @3rd-Eden 3rd-Eden committed Dec 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/plates.js
View
@@ -1,4 +1,4 @@
-var Plates = (typeof module !== 'undefined' && typeof module.exports !== 'undefined' && typeof exports !== 'undefined') ? exports : {};
+var Plates = (typeof module !== 'undefined' && 'id' in module && typeof exports !== 'undefined') ? exports : {};
!function(exports, env, undefined) {
"use strict";

0 comments on commit 0d1638e

Please sign in to comment.