paglias / KnockoutApp

A framework for KnockoutJS
http://paglias.net/KnockoutApp
MIT License
21 stars 2 forks source link

every function should return something #8

Closed paglias closed 11 years ago

paglias commented 11 years ago

this is a problem with collection.add and collection.remove because there are cases where model.save() and model.destroy() are called and they execute asynchronous code so it's difficult to return a value.

For collection.remove i think that it should return an array of remove models (like when calling remove on an observable array) whiel for 'collection.add' I have no idea

paglias commented 11 years ago

Closing as this isn't really a problem