]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
make moment.js compatible with older version of requirejs 1293/head
authorMark Bryan Yu <mark@webs.com>
Thu, 21 Nov 2013 22:33:01 +0000 (17:33 -0500)
committerMark Bryan Yu <mark@webs.com>
Thu, 21 Nov 2013 22:33:01 +0000 (17:33 -0500)
moment.js

index 3fe68bd8d5478c8c5cfaad4a6423463774b9b763..e445d7b1da6fb2f35bada18f6e5eb113eda91a2d 100644 (file)
--- a/moment.js
+++ b/moment.js
         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);
             }