You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2016/09/02 18:18:46 UTC
[3/3] incubator-ponymail git commit: make sure these can be split()
make sure these can be split()
Stringify integers in case a user passes them instead
of a string
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/a2c1b83f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/a2c1b83f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/a2c1b83f
Branch: refs/heads/coffee-and-cake
Commit: a2c1b83f56d899c9746eaa1b5551ebd208cc6da2
Parents: 172c36c
Author: Daniel Gruno <hu...@apache.org>
Authored: Fri Sep 2 20:18:14 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Fri Sep 2 20:18:14 2016 +0200
----------------------------------------------------------------------
site/js/coffee/calendar.coffee | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/a2c1b83f/site/js/coffee/calendar.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/calendar.coffee b/site/js/coffee/calendar.coffee
index aedb546..b8eb76a 100644
--- a/site/js/coffee/calendar.coffee
+++ b/site/js/coffee/calendar.coffee
@@ -24,13 +24,13 @@ class Calendar
now = new Date()
### Split start and end into years and months ###
- [sYear, sMonth] = start.split("-")
+ [sYear, sMonth] = String(start).split("-")
[eYear, eMonth] = [now.getFullYear(), now.getMonth()+1]
### If end year+month given, use it ###
if end
- [eYear, eMonth] = end.split("-")
+ [eYear, eMonth] = String(end).split("-")
### Make sure months are there, otherwise set them ###
if not sMonth