]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Adding exposure to UnderscoreDate.prototype through _date.fn
authorTim Wood <washwithcare@gmail.com>
Wed, 12 Oct 2011 05:54:52 +0000 (22:54 -0700)
committerTim Wood <washwithcare@gmail.com>
Wed, 12 Oct 2011 05:54:52 +0000 (22:54 -0700)
underscore.date.js

index b833583f392feea299bc16506f060d62173fb247..db5e76eb288b76234f8b7d27af13265da1a746d4 100644 (file)
             substituteTimeAgo('yy', round(years));
     }
 
-    UnderscoreDate.prototype = {
+    // shortcut for prototype
+    _date.fn = UnderscoreDate.prototype = {
 
         valueOf : function () {
             return this.date.getTime();