From: Tim Wood Date: Wed, 12 Oct 2011 05:54:52 +0000 (-0700) Subject: Adding exposure to UnderscoreDate.prototype through _date.fn X-Git-Tag: 1.0.1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7825a7e39b1d5761496797516964166ecd0200ac;p=thirdparty%2Fmoment.git Adding exposure to UnderscoreDate.prototype through _date.fn --- diff --git a/underscore.date.js b/underscore.date.js index b833583f3..db5e76eb2 100644 --- a/underscore.date.js +++ b/underscore.date.js @@ -374,7 +374,8 @@ substituteTimeAgo('yy', round(years)); } - UnderscoreDate.prototype = { + // shortcut for prototype + _date.fn = UnderscoreDate.prototype = { valueOf : function () { return this.date.getTime();