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

Operator ~> behavior in Ember.Enumerable methods (like filterProperty) #16

Open
yfp opened this issue Jun 20, 2013 · 0 comments
Open

Operator ~> behavior in Ember.Enumerable methods (like filterProperty) #16

yfp opened this issue Jun 20, 2013 · 0 comments

Comments

@yfp
Copy link

yfp commented Jun 20, 2013

Operator ~> incorrectly processes method definitions with filterProperty.

class Controller
  countMarked: ~>
    @filterProperty('isMarked', true).length

turns into

Controller = Ember.Object.extend({
  countMarked: Ember.computed(function () {
    return get$(this.filterProperty('isMarked', true), 'length');
  }).property('@each.length')
});

though it should be .property('@each.isMarked')

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