addyosmani / addyosmani/backbone-fundamentals
Remove inconsistent bracing spaces
- 主要语言
- Rich Text Format
- 星标
- 9.2k
- 派生
- 1.4k
- PR 合并指标
- 30 天内没有已合并 PR
描述
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](https://github.com/addyosmani/backbone-fundamentals/blob/gh-pages/chapters/02-fundamentals.md) 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](https://github.com/airbnb/javascript), and change the above to:
`todoTpl: _.template($('#item-template').html()),`
`this.$el.html(this.todoTpl(this.model.attributes));`
`var todoView = new TodoView({model: myTodo});`
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。