From: Isaac Cambron Date: Wed, 23 Jul 2014 04:13:07 +0000 (-0400) Subject: Fix deprecation warning on moment().locale() X-Git-Tag: 2.8.0~12^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=677db209498780f5c0eeec5de71569d28f1d48cd;p=thirdparty%2Fmoment.git Fix deprecation warning on moment().locale() --- diff --git a/moment.js b/moment.js index 4596ea877..60eeb5e42 100644 --- a/moment.js +++ b/moment.js @@ -2407,7 +2407,7 @@ }, lang : deprecate( - "moment().lang is deprecated. Use moment().locale instead.", + "moment().lang() is deprecated. Use moment().localeData() instead.", function (key) { return this.localeData(key); }