From c627e8a0ddc4e5b59f890c67145c8de892c0dca5 Mon Sep 17 00:00:00 2001 From: Ayumi Hamasaki <55155131+ayumihamasaki2019@users.noreply.github.com> Date: Fri, 27 Sep 2019 20:04:46 +0100 Subject: [PATCH] Update mustache.js to 2.3.2 (#4644) Credit to @ayumihamasaki2019 --- .../assets/ui/vendor/mustache/mustache.js | 224 ++++++++++-------- 1 file changed, 127 insertions(+), 97 deletions(-) diff --git a/modules/system/assets/ui/vendor/mustache/mustache.js b/modules/system/assets/ui/vendor/mustache/mustache.js index 344d65b86..e83c5f9c6 100644 --- a/modules/system/assets/ui/vendor/mustache/mustache.js +++ b/modules/system/assets/ui/vendor/mustache/mustache.js @@ -1,56 +1,76 @@ /*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js + * version 2.3.2 */ -/*global define: false*/ +/*global define: false Mustache: true*/ -(function (global, 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) { + } else if (typeof define === 'function' && define.amd) { define(['exports'], factory); // AMD } else { - factory(global.Mustache = {}); //