Remove inconsistent bracing spaces
oscarmorrison opened this issue · comments
Throughout the book, I have seen in numerous places the inconsistent use of bracing and spacing. Individuals new to backbone and new to javascript in general will find this inconsistency confusing and hinder learning.
Using Chapter2 as an example, we can see that in the third block of code there is three different spacing and formatting:
todoTpl: _.template( $('#item-template').html() ),
this.$el.html( this.todoTpl( this.model.attributes ) );
var todoView = new TodoView({model: myTodo});
I highly recommend that we follow some generally recommended standard such as AirBnB's Style Guide, and change the above to:
todoTpl: _.template($('#item-template').html()),
this.$el.html(this.todoTpl(this.model.attributes));
var todoView = new TodoView({model: myTodo});