js-model icon indicating copy to clipboard operation
js-model copied to clipboard

Class level crud

Open ismasan opened this issue 13 years ago • 0 comments

Klass.destroy(instance, callback) and Klass.save(instance, callback).

No API deprecations. Instance#destroy() and Instance#save() just delegate to class.

Motives: allows me to save a model as part of a different collection, using the target collection's persistance layer.

Tests pass, but no new tests for these class methods.

ismasan avatar May 11 '11 16:05 ismasan