From: Malte Legenhausen Date: Wed, 11 Jan 2012 21:51:49 +0000 (+0100) Subject: RequireJS (AMD) support added X-Git-Tag: 1.4.0~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F130%2Fhead;p=thirdparty%2Fmoment.git RequireJS (AMD) support added --- 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);