You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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});
The text was updated successfully, but these errors were encountered:
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});
The text was updated successfully, but these errors were encountered: