Push operations on an array not being observed

I might be missing something very basic here, but push operations on an instance of Ember.Array() are not getting observed at all:

[JSBin] [Release] - http://emberjs.jsbin.com/kaqigiqoce/1/edit?html,js,console,output

[JSBin] [Beta] - http://emberjs.jsbin.com/navizemolu/1/edit?html,js,console,output

[JSBin] [Canary] - http://emberjs.jsbin.com/wacikereda/1/edit

Can someone explain what’s wrong here?

push is not observed because javascript, you have to use addObject.

1 Like

@varblob Oh, my bad. Thanks for the link.

Correction it should be pushObject

Sorry about that!

So addObject is an extension of pushObject which additionally checks if the object is already present in the array. Got it.