From: Steve Mason Date: Tue, 18 Oct 2011 12:37:46 +0000 (+0200) Subject: Fix for moment not working under browserify, because "window" is defined here X-Git-Tag: 1.0.1~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F25%2Fhead;p=thirdparty%2Fmoment.git Fix for moment not working under browserify, because "window" is defined here --- diff --git a/moment.js b/moment.js index 4760b59d8..5721768e0 100644 --- a/moment.js +++ b/moment.js @@ -10,7 +10,7 @@ var moment, round = Math.round, languages = {}, - isNode = (typeof window === 'undefined' && typeof module !== 'undefined'), + isNode = (typeof module !== 'undefined'), paramsToParse = 'months|monthsShort|weekdays|weekdaysShort|relativeTime|ordinal'.split('|'), i, shortcuts = 'Month|Date|Hours|Minutes|Seconds'.split('|');