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

_getSubViewRenderConditions does not use _.result to resolve the property #8

Open
billjamesdev opened this issue Jul 15, 2014 · 0 comments

Comments

@billjamesdev
Copy link

It would be good if _getSubViewRenderConditions would use _.result to resolve the "subViewRenderConditions" property. In the code for our BossView, we want to specify other methods in the View as the render condition methods, but can't, since you can't reference other methods in the same object when creating an object in code.

subViewRenderConditions: {
     view1: this.testCondition1,
     view2: this.testCondition2
}

The above case does NOT work, as testCondition1 and testCondition2 are methods on the currently-being-defined view. You would need to do something like this:

subViewRenderConditions: function() {
     return {
          view1: this.testCondition1,
          view2: this.testCondition2
     }
}

This WOULD work, if _getSubViewRenderConditions used _.result.

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