]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
removing extra s in get() and set() 978/head
authorIsaac Cambron <icambron@gmail.com>
Tue, 6 Aug 2013 07:32:59 +0000 (03:32 -0400)
committerIsaac Cambron <icambron@gmail.com>
Tue, 6 Aug 2013 07:32:59 +0000 (03:32 -0400)
moment.js

index bdf3c0d4728095283115bb94a9ddbf65d9c86957..23b74dc57ddeafefd2e26406bfca7abd7fa0d0be 100644 (file)
--- a/moment.js
+++ b/moment.js
 
         get : function (units) {
             units = normalizeUnits(units);
-            return this[units.toLowerCase() + 's']();
+            return this[units.toLowerCase()]();
         },
 
         set : function (units, value) {
             units = normalizeUnits(units);
-            this[units.toLowerCase() + 's'](value);
+            this[units.toLowerCase()](value);
         },
 
         // If passed a language key, it will set the language for this