]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Whitespace diff…
authorTim Wood <washwithcare@gmail.com>
Mon, 11 Jun 2012 21:12:57 +0000 (14:12 -0700)
committerTim Wood <washwithcare@gmail.com>
Mon, 11 Jun 2012 21:12:57 +0000 (14:12 -0700)
#296

moment.js

index dbd2b2891da1c962c9c4e51a08387cea9e27e4df..e8c88c5dfbd8a86873bbd42d9840979bd9a0bccb 100644 (file)
--- a/moment.js
+++ b/moment.js
             var output = this.clone();
             // the following switch intentionally omits break keywords
             // to utilize falling through the cases.
-           switch (val.replace(/s$/, '')) {
+            switch (val.replace(/s$/, '')) {
             case 'year':
                 output.month(0);
                 /* falls through */
             }
             return output;
         },
-                
+
         endOf: function (val) {
-           return this.startOf(val).add(val.replace(/s?$/, 's'), 1).subtract('ms', 1);
+            return this.startOf(val).add(val.replace(/s?$/, 's'), 1).subtract('ms', 1);
         },
         
         sod: function () {