emberjs/ember.js — Issue #551: emptyView showing when not empty
Author: raycohen
Created: 2012-02-29 02:09:18+00:00
State: open

I noticed in my project that the emptyView is showing even when my list is not empty.

It happens when I set content to an empty list and then set it to a non-empty list before the next run loop occurs.

Allowing a runloop between the two `set('content', ...)` (using setTimeout wrapped around the second, for example) makes everything work like I expect.

JSFiddle illustrates:

http://jsfiddle.net/2ZTqB/

I can work around this, but it seems like a bug, right?