]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixed jshint issues in moment.js
authorIskren Chernev <iskren.chernev@gmail.com>
Wed, 24 Apr 2013 08:48:09 +0000 (01:48 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 24 Apr 2013 09:12:38 +0000 (02:12 -0700)
moment.js

index 76f8e9321e3ecbe065ef3a3c59c16f89b86da6ec..0ebc5f5e9bbeee9b6df18b63452221cd485edc5b 100644 (file)
--- a/moment.js
+++ b/moment.js
             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));
         },
             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;