From 1299b724a3a5255d116197b0880ff689fc5ea784 Mon Sep 17 00:00:00 2001 From: Steve Mason Date: Tue, 18 Oct 2011 14:37:46 +0200 Subject: [PATCH] Fix for moment not working under browserify, because "window" is defined here --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('|'); -- 2.47.2