From 5f4bb7356467bfa1f986eb0a7fed609783d1f6ce Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 7 Mar 2013 18:35:54 -0500 Subject: [PATCH] Always return order property from strToDate() Broken in merge 995091d0 --- chrome/content/zotero/xpcom/date.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/date.js b/chrome/content/zotero/xpcom/date.js index 08b73bde5..ea21fe628 100644 --- a/chrome/content/zotero/xpcom/date.js +++ b/chrome/content/zotero/xpcom/date.js @@ -228,14 +228,15 @@ Zotero.Date = new function(){ var _dayRe = null; function strToDate(string) { - var date = {}; + var date = { + order: '' + }; // skip empty things if(!string) { return date; } - date.order = ''; var parts = []; // Parse 'yesterday'/'today'/'tomorrow'