diff -r 3d19cbe56fcb -r 3f20f286d43e src/js/libs/mustache.js --- a/src/js/libs/mustache.js Fri Sep 18 15:08:36 2015 +0200 +++ b/src/js/libs/mustache.js Fri Sep 18 17:42:42 2015 +0200 @@ -3,369 +3,106 @@ * http://github.com/janl/mustache.js */ -/*global define: false*/ +/*global define: false Mustache: true*/ -(function (root, factory) { - if (typeof exports === "object" && exports) { +(function defineMustache (global, factory) { + if (typeof exports === 'object' && exports && typeof exports.nodeName !== 'string') { factory(exports); // CommonJS + } else if (typeof define === 'function' && define.amd) { + define(['exports'], factory); // AMD } else { - var mustache = {}; - factory(mustache); - if (typeof define === "function" && define.amd) { - define(mustache); // AMD - } else { - root.Mustache = mustache; //