Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

ArrayProxy content.length vs length

$
0
0

@williamhaley wrote:

I'm not sure I understand ArrayProxy.

I'm trying to extend ArrayProxy, and I'm using pushObject to add content to my array. I see the content getting updated, but for whatever reason the length of the array does not seem to accurately reflect the number of contents like I'd expect.

https://ember-twiddle.com/d40f74211eaf32aa2202770003cfbb5b?openFiles=templates.application.hbs%2C

I feel like I'm probably missing something simple. The docs say ArrayProxy is a concrete implementation, but do I need to implement length myself?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles