]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Ensure module.config() returns an object 1280/head
authorStephen Bradshaw <stephen.bradshaw@thomsonreuters.com>
Mon, 18 Nov 2013 15:43:06 +0000 (15:43 +0000)
committerStephen Bradshaw <stephen.bradshaw@thomsonreuters.com>
Mon, 18 Nov 2013 15:43:06 +0000 (15:43 +0000)
moment.js

index 3d7194001aa3869782ef47b87fce189ee705661d..3fe68bd8d5478c8c5cfaad4a6423463774b9b763 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().noGlobal !== true) {
+            if (module.config() && module.config().noGlobal !== true) {
                 // If user provided noGlobal, he is aware of global
                 makeGlobal(module.config().noGlobal === undefined);
             }