From: Isaac Cambron Date: Fri, 22 Nov 2013 18:23:08 +0000 (-0800) Subject: Merge pull request #1264 from ichernev/bugfix/deprecated-export-static-methods X-Git-Tag: 2.5.0^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=806931e5460a724bd590f18f46f278390e9fce79;p=thirdparty%2Fmoment.git Merge pull request #1264 from ichernev/bugfix/deprecated-export-static-methods Add all moment static functions to deprecated global export --- 806931e5460a724bd590f18f46f278390e9fce79 diff --cc moment.js index f343687e0,641b1b233..3df90f0ce --- a/moment.js +++ b/moment.js @@@ -2293,8 -2292,9 +2293,9 @@@ } return local_moment.apply(null, arguments); }; + extend(this.moment, local_moment); } else { - this['moment'] = moment; + global['moment'] = moment; } }