At the bottom of page 27, there are 2 calls to Helpers.previousMonth(date)
/* This is not a good idea */
var CalendarNavigation = Backbone.View.extend({
render: function() {
var date = this.collection.getDate(),
previous_month = Helpers.previousMonth(date),
next_month = Helpers.previousMonth(date);
Presumably one of them should be to a method called Helpers.nextMonth(date)
/* This is not a good idea */
var CalendarNavigation = Backbone.View.extend({
render: function() {
var date = this.collection.getDate(),
previous_month = Helpers.previousMonth(date),
next_month = Helpers.nextMonth(date);
At the bottom of page 27, there are 2 calls to Helpers.previousMonth(date)
/* This is not a good idea */ var CalendarNavigation = Backbone.View.extend({ render: function() { var date = this.collection.getDate(), previous_month = Helpers.previousMonth(date), next_month = Helpers.previousMonth(date);
Presumably one of them should be to a method called Helpers.nextMonth(date)
/* This is not a good idea */ var CalendarNavigation = Backbone.View.extend({ render: function() { var date = this.collection.getDate(), previous_month = Helpers.previousMonth(date), next_month = Helpers.nextMonth(date);