Skip to content

dependency inference - missing some dependent properties #45

@huafu

Description

@huafu

Cannot explain better than an example:

class Person
  postsDisplay: ~>
    @user.method @name

will give you:

Person = Ember.Object.extend({
  postsDisplay: Ember.computed(function () {
    return get$(this, 'user').method(get$(this, 'name'));
  }).property('user')
});

As you can see the name is not added in the dependencies of the computed property. Sounds like this happens when having the properties in parameters. Also:

class Person
  postsDisplay: ~>
    @method @name

would give:

Person = Ember.Object.extend({
  postsDisplay: Ember.computed(function () {
    return this.method(get$(this, 'name'));
  }).property('')
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions