From: Iskren Chernev Date: Wed, 24 Apr 2013 08:48:09 +0000 (-0700) Subject: Fixed jshint issues in moment.js X-Git-Tag: 2.1.0~28^2~3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=764162b861974f086b11fca4d01f48be6fb6ade9;p=thirdparty%2Fmoment.git Fixed jshint issues in moment.js --- diff --git a/moment.js b/moment.js index 76f8e9321..0ebc5f5e9 100644 --- a/moment.js +++ b/moment.js @@ -1355,7 +1355,7 @@ return input == null ? dayOfYear : this.add("d", (input - dayOfYear)); }, - weekYear : function(input) { + weekYear : function (input) { var year = weekOfYear(this, this.lang()._week.dow, this.lang()._week.doy).year; return input == null ? year : this.add("y", (input - year)); }, @@ -1375,12 +1375,12 @@ return input == null ? week : this.add("d", (input - week) * 7); }, - weekday : function(input) { + weekday : function (input) { var weekday = (this._d.getDay() + 7 - this.lang()._week.dow) % 7; return input == null ? weekday : this.add("d", input - weekday); }, - isoWeekday : function(input) { + isoWeekday : function (input) { // iso weeks start on monday, which is 1, so we subtract 1 (and add // 7 for negative mod to work). var weekday = (this._d.getDay() + 6) % 7;