Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove inconsistent bracing spaces #709

Open
oscarmorrison opened this issue Apr 30, 2016 · 0 comments
Open

Remove inconsistent bracing spaces #709

oscarmorrison opened this issue Apr 30, 2016 · 0 comments

Comments

@oscarmorrison
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant