Permalink
Browse files

Merge pull request #1 from hughfdjackson/master

Included support for browser-side node-style (commonjs) exports
  • Loading branch information...
2 parents 1873f84 + ce323b3 commit a443626e6a1e5706782bd65c1d3a2fb7dc8663be Robert Hurst committed Mar 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lucid.js
View
@@ -14,8 +14,8 @@
if(typeof define === 'function' && define.amd) {
define(factory);
- //NODE
- } else if(typeof document === 'undefined' && typeof module === 'object') {
+ //NODE (OR NODE-STYLE MODULES)
+ } else if( typeof module === 'object' && module.exports ) {
module.exports = factory();
//DOM GLOBAL
@@ -243,4 +243,4 @@
}
}
}
-});
+});

0 comments on commit a443626

Please sign in to comment.