Skip to content

Conversation

@saponifi3d
Copy link
Contributor

This is a pretty quick fix - one line change.

The parseOptions already does work to set this.model and this.collection but the BaseView constructor will then override them. This will set it so it never overrides the two special cases in the base rendr view.

@mdimas
Copy link
Contributor

mdimas commented Aug 25, 2014

This was how I was think we could work around this problem, but would love to hear if anyone else has a different idea.

@saponifi3d can we add a simple test?

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling e1fb33a on saponifi3d:parseOptions-fix into cd83109 on rendrjs:master.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.call instead of .apply

@coveralls
Copy link

Coverage Status

Coverage increased (+0.41%) when pulling b5ae777 on saponifi3d:parseOptions-fix into cd83109 on rendrjs:master.

@mdimas
Copy link
Contributor

mdimas commented Aug 26, 2014

👍 increased test coverage!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.41%) when pulling 3d6b4c2 on saponifi3d:parseOptions-fix into cd83109 on rendrjs:master.

saponifi3d added a commit that referenced this pull request Aug 26, 2014
bug fix for backbone overriding the creation of a model
@saponifi3d saponifi3d merged commit 3914e0c into rendrjs:master Aug 26, 2014
@saponifi3d saponifi3d deleted the parseOptions-fix branch August 26, 2014 20:15
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

Successfully merging this pull request may close these issues.

4 participants