Skip to content

Commit

Permalink
Merge pull request #472 from mikesherov/patch-1
Browse files Browse the repository at this point in the history
Update UMD Shim to be resilient to HTMLElement global pollution
  • Loading branch information
dasilvacontin committed Jul 23, 2015
2 parents 947d17c + 853f9c3 commit c4c9238
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 Mustache: true*/

(function defineMustache (global, factory) {
if (typeof exports === 'object' && exports) {
if (typeof exports === 'object' && exports && typeof exports.nodeName !== 'string') {
factory(exports); // CommonJS
} else if (typeof define === 'function' && define.amd) {
define(['exports'], factory); // AMD
Expand Down

0 comments on commit c4c9238

Please sign in to comment.