Просмотр исходного кода

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 13 лет назад
Родитель
Сommit
2afdb083fc
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Просмотреть файл

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


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


Загрузка…
Отмена
Сохранить