From: Iskren Chernev Date: Thu, 3 Apr 2014 21:18:56 +0000 (-0700) Subject: Revert "Add specific check for "require" in hasModule check (fixes bug when using... X-Git-Tag: 2.6.0~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1588%2Fhead;p=thirdparty%2Fmoment.git 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 --- 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,