Sospecho que hay una forma de actualizar un proxy Ember.Array que activará las notificaciones de ember, pero no sé cómo.Cambios en Ember.ArrayProxy que no activan los manillares # cada actualización
Estoy sobrescribiendo la propiedad "content" para actualizar la matriz. La matriz se actualiza, pero la vista no.
App.items = Ember.ArrayProxy.create({
content: [
Ember.Object.create({ name: 'Me', city: 'new york'}),
Ember.Object.create({ name: 'You', city: 'boston'})
],
sortByCity: function() {
this.set('content', this.get('content').sort(function(a,b) {
return a.get('city') > b.get('city')
}));
}
});
Aquí es un violín que demuestra el problema http://jsfiddle.net/alexrothenberg/za4Ha/1/
Cualquier ayuda se agradece. ¡Gracias!
Gracias esto no resuelve mi problema. – alexrothenberg