pwhisenhunt/Backbonejs-Router-Title-Helper — pull request #9 by thejameskyle (2014-04-04 01:15:54+00:00)
Title: Code Cleanup

Great backbone extension, thanks for it.

I like reading through the source code of all the scripts I use, and was a bit confused reading through this one. I just did a little cleaning up, and ended up saving you some bytes by using underscore some more.

---

**Changes:**
- Expanded nested ternary operators into if statements ([ref](https://github.com/pwhisenhunt/Backbonejs-Router-Title-Helper/blob/v0.1.0/backbone.router.title.helper.js#L42-L45))
- Made use of more underscore methods ([ref](https://github.com/pwhisenhunt/Backbonejs-Router-Title-Helper/blob/v0.1.0/backbone.router.title.helper.js#L39-L40))
- Flattened some nesting ([ref](https://github.com/pwhisenhunt/Backbonejs-Router-Title-Helper/blob/v0.1.0/backbone.router.title.helper.js#L23-L33))
- Added whitespace for readability ([ref](https://github.com/pwhisenhunt/Backbonejs-Router-Title-Helper/blob/v0.1.0/backbone.router.title.helper.js#L51-L56))

---

Let me know if you need anything else