Skip to content

Pushing to an arrayProxy triggers calls to objectAtContent on the content array #5379

@igorT

Description

@igorT

If you have two arrayProxies, pushing to the top most proxy triggers calls to objectAtContent on the child proxy:
http://emberjs.jsbin.com/samexo/1/edit

Seems like pushing objects shouldn't cause them to be accessed. In fact, only the first and last objects get accessed, due to this check:
https://github.com/emberjs/ember.js/blob/master/packages/ember-runtime/lib/mixins/array.js#L425

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions