Pārlūkot izejas kodu

fixed CommonJS check

QUnit defines module too. If you try to use mustache in a QUnit and AMD environment it won't work
tags/0.6.0
Bastian Bleker pirms 13 gadiem
vecāks
revīzija
2afdb083fc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Parādīt failu

@@ -8,7 +8,7 @@
var Mustache;

(function (exports) {
if (typeof module !== "undefined") {
if (typeof module !== "undefined" && typeof module.exports !== "undefined") {
module.exports = exports; // CommonJS
} else if (typeof define === "function") {
define(exports); // AMD


Notiek ielāde…
Atcelt
Saglabāt