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

Templates cannot read a property from a function #14729

Closed

Conversation

kturney
Copy link
Contributor

@kturney kturney commented Dec 16, 2016

We ran into this when trying to upgrade our app that uses https://github.com/LocusEnergy/ember-d3-helpers to 2.10.

Specifically, we were trying to get the bandwidth function property off a band scale, which comes from D3 and is itself a function (options.xScale.bandwidth).

Ember.get(options, 'xScale.bandwidth') works just fine.

I've included a failing test case.

@krisselden
Copy link
Contributor

@kturney while props on functions not rendering is a regression being able to update them via Ember.set or Ember.notifyPropertyChange is a new feature. I checked 1.12, 1.13, 2.9 and function props are rendered as though they are constant {{const fn.prop}}.

@kturney
Copy link
Contributor Author

kturney commented Aug 25, 2017

superseded by #15482 and #15535

@kturney kturney closed this Aug 25, 2017
@kturney kturney deleted the function-property-in-template branch August 25, 2017 14:37
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.

3 participants