From f31d9dc349830c35189dc3cd2191e8f0443a4346 Mon Sep 17 00:00:00 2001 From: Malte Legenhausen Date: Wed, 11 Jan 2012 22:51:49 +0100 Subject: [PATCH] RequireJS (AMD) support added --- moment.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/moment.js b/moment.js index 5e64b10e2..f3db3e530 100644 --- a/moment.js +++ b/moment.js @@ -620,5 +620,9 @@ if (typeof window !== 'undefined') { window.moment = moment; } - + if (typeof define === "function" && define.amd) { + define( "moment", [], function () { + return moment; + }); + } })(Date); -- 2.47.2