From: Tim Wood Date: Mon, 14 Nov 2011 17:51:29 +0000 (-0800) Subject: Renaming internal variable to pass closure-compiler #63 X-Git-Tag: 1.1.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40da5003b70de9364684af1a5218705e4c8d12e1;p=thirdparty%2Fmoment.git Renaming internal variable to pass closure-compiler #63 --- diff --git a/moment.js b/moment.js index c4fc97939..16b734740 100644 --- a/moment.js +++ b/moment.js @@ -439,7 +439,7 @@ return this; }, - diff : function (input, val, float) { + diff : function (input, val, asFloat) { var inputMoment = moment(input), diff = this._d - inputMoment._d, year = this.year() - inputMoment.year(), @@ -458,7 +458,7 @@ val === 'weeks' ? diff / 6048e5 : // 1000 * 60 * 60 * 24 * 7 val === 'days' ? diff / 3600 : diff; } - return float ? output : round(output); + return asFloat ? output : round(output); }, from : function (time, withoutSuffix) {