From 7825a7e39b1d5761496797516964166ecd0200ac Mon Sep 17 00:00:00 2001 From: Tim Wood Date: Tue, 11 Oct 2011 22:54:52 -0700 Subject: [PATCH] Adding exposure to UnderscoreDate.prototype through _date.fn --- underscore.date.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.47.3