Amicus/end-dash — pull request #201 by devmanhinton (2014-05-05 17:21:21+00:00)
Title: Return a blank model, if what is passed in is undefined

@tobowers @yaymukund @xcoderzach

```javascript

```

If there is no currently selected question, EndDash errors with 'cannot bind undefined to template'
Even wrapping above in `

` errored

This PR fixes this with the logic, 'if the model scoped into is undefined, simply bind it to a blank Backbone model'.

This:

a) Displays the correct boolean logic
It will not show anything inside of `

`

b) Updates properly if `selectedQuestion` is set on the model in scope

c) Does not error

Negative is:

a) It might be harder to debug

Its worth noting, this is how EndDash behaves in release 0.3.3a<=

There may be a better long term solution (don't bind reactions inside false conditionals) however this is a hard fix and requires more thinking. This is a good short-term solution that behaves correctly.