]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
In IE11 I'm seeing module being registered as type "object" but is null. This also...
authorEli Gassert <eli.gassert@toad-software.com>
Mon, 15 Sep 2014 15:09:57 +0000 (11:09 -0400)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 17 Nov 2014 05:48:37 +0000 (21:48 -0800)
moment.js

index 8558c186adfdbb66f4ccddfb5503e79f49c03be4..ff7998fb586f8144608fd6134f72a7ea0cd9176e 100644 (file)
--- a/moment.js
+++ b/moment.js
@@ -33,7 +33,7 @@
         momentProperties = [],
 
         // check for nodeJS
-        hasModule = (typeof module !== 'undefined' && module.exports),
+        hasModule = (typeof module !== 'undefined' && module && module.exports),
 
         // ASP.NET json date format regex
         aspNetJsonRegex = /^\/?Date\((\-?\d+)/i,