Skip to content

Commit

Permalink
handle case where exports is null
Browse files Browse the repository at this point in the history
  • Loading branch information
busticated committed Dec 18, 2012
1 parent fa214bd commit d90d37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mustache.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/*global define: false*/

(function (root, factory) {
if (typeof exports === "object") {
if (typeof exports === "object" && exports) {
module.exports = factory; // CommonJS
} else if (typeof define === "function" && define.amd) {
define(factory); // AMD
Expand Down

0 comments on commit d90d37f

Please sign in to comment.