Przeglądaj źródła

Merge pull request #472 from mikesherov/patch-1

Update UMD Shim to be resilient to HTMLElement global pollution
tags/v2.1.3
David da Silva Contín 10 lat temu
rodzic
commit
c4c9238443
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz