Skip to content

Commit

Permalink
Merge branch 'master' of github.com:BrainSwap/dontbreakme
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Eckroth committed May 21, 2012
2 parents d5330d3 + 55addfe commit a3b922f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/views/calendar/calendar.js
Expand Up @@ -10,12 +10,13 @@

initialize: function(){
_.bindAll(this, 'setActiveDayMonth');
this.collection.on('change', this.setActiveDayMonth);
this.collection.on('change:hits', this.setActiveDayMonth);
},

setActiveDayMonth: function(){
var curDay = ns.data.curDate.getDate() - 1;
var curMonth = ns.data.curDate.getMonth();

this.$el.find('.cal-month' + curMonth).addClass('active-month').end()
.find('.cal-day' + curDay).addClass('active-day');
},
Expand Down

0 comments on commit a3b922f

Please sign in to comment.