From: Rocky Meza Date: Sun, 10 Jun 2012 19:34:46 +0000 (-0600) Subject: Condense the duration.fn a little bit. X-Git-Tag: 1.7.0~22^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8eb4db499e679e3502d16c49b4ad2658681ed31;p=thirdparty%2Fmoment.git Condense the duration.fn a little bit. --- diff --git a/moment.js b/moment.js index 60b13d825..c5d0853bc 100644 --- a/moment.js +++ b/moment.js @@ -1036,10 +1036,10 @@ } return output; - } - }; + }, - moment.duration.fn.lang = moment.fn.lang; + lang : moment.fn.lang + }; function makeDurationGetter(name) { moment.duration.fn[name] = function () {