From: Mark Bryan Yu Date: Thu, 21 Nov 2013 22:33:01 +0000 (-0500) Subject: make moment.js compatible with older version of requirejs X-Git-Tag: 2.5.0^2~33^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f2aa94962b80ebf6a2515c39504591cfcd3290d;p=thirdparty%2Fmoment.git make moment.js compatible with older version of requirejs --- 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); }