recipeswithbackbone / recipeswithbackbone.github.com

Marketing site for the best damn backbone.js book evar
23 stars 1 forks source link

Code typo: Page 27 #37

Closed simax closed 12 years ago

simax commented 12 years ago

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);

eee-c commented 12 years ago

Yes, indeed. Thanks!

eee-c commented 12 years ago

Fixed in latest. Download from the same link in the original purchase email.