From 9f2aa94962b80ebf6a2515c39504591cfcd3290d Mon Sep 17 00:00:00 2001 From: Mark Bryan Yu Date: Thu, 21 Nov 2013 17:33:01 -0500 Subject: [PATCH] make moment.js compatible with older version of requirejs --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.js b/moment.js index 3fe68bd8d..e445d7b1d 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() && module.config().noGlobal !== true) { + if (module.config && module.config() && module.config().noGlobal !== true) { // If user provided noGlobal, he is aware of global makeGlobal(module.config().noGlobal === undefined); } -- 2.47.2