From 3c6828a3e0d7a860064ffb231d3728e2620348e3 Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Thu, 3 Apr 2014 14:18:56 -0700 Subject: [PATCH] Revert "Add specific check for "require" in hasModule check (fixes bug when using with QUnit)." This reverts commit ed6a2d4e1f3e32abce6939ef451f0cd4f8c54a1b. This was discussed in https://github.com/moment/moment/issues/1537#issuecomment-39505749 --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.js b/moment.js index b79da7f26..6a8327f9a 100644 --- a/moment.js +++ b/moment.js @@ -41,7 +41,7 @@ }, // check for nodeJS - hasModule = (typeof module !== 'undefined' && module.exports && typeof require !== 'undefined'), + hasModule = (typeof module !== 'undefined' && module.exports), // ASP.NET json date format regex aspNetJsonRegex = /^\/?Date\((\-?\d+)/i, -- 2.47.2