Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 20, 2012
1 parent 2b49691 commit 58d385b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/days.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,18 +263,16 @@ Days.prototype.rowsFor = function(date){
*/

function prevMonthDay(year, month, day) {
return '<td><a href="#" data-date='
+ year + '-' + month + '-' + day
+ ' class=prev-day>' + day + '</a></td>';
var date = 'data-date=' + [year, month, day].join('-');
return '<td><a href="#" ' + date + ' class=prev-day>' + day + '</a></td>';
}

/**
* Next month day template.
*/

function nextMonthDay(year, month, day) {
return '<td><a href="#" data-date='
+ year + '-' + month + '-' + day
+ ' class=next-day>' + day + '</a></td>';
var date = 'data-date=' + [year, month, day].join('-');
return '<td><a href="#" ' + date + ' class=next-day>' + day + '</a></td>';
}

0 comments on commit 58d385b

Please sign in to comment.