From 023478dc525b258a0ac30e9608a9de2f4cb27804 Mon Sep 17 00:00:00 2001 From: Stephen Bradshaw Date: Mon, 18 Nov 2013 15:43:06 +0000 Subject: [PATCH] Ensure module.config() returns an object --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.js b/moment.js index 3d7194001..3fe68bd8d 100644 --- a/moment.js +++ b/moment.js @@ -2304,7 +2304,7 @@ makeGlobal(true); } else if (typeof define === "function" && define.amd) { define("moment", function (require, exports, module) { - if (module.config().noGlobal !== true) { + if (module.config() && module.config().noGlobal !== true) { // If user provided noGlobal, he is aware of global makeGlobal(module.config().noGlobal === undefined); } -- 2.47.2