Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (23 sloc) 1.565 kB

Changelog

0.7.1

  • Model.RestPersistence now recognises a 422 response as validation failure and populates the model's errors object with the response data.
  • Model.errors is now an object and has a similar interface to ActiveModel.
  • Fix that changes should only be merged after a successful save (create/update).
  • Calling Model#attr() with no arguments returns a combined object of attributes/changes.
  • Fix that Model.RestPersistence Ajax failures should correctly run the supplied callback.
  • Add count method to Model.Collection.
  • Collection methods now access the collection through the all method so that select, each, etc work as expected if it's overwritten.

0.7.0

  • Events are now bound directly to a model rather than using jQuery bind. Collections also now have the concept of events with "add" and "remove" built-in.

0.6.1

  • update should trigger "update" event, add separate merge method.
  • Fix that persistence failure should not trigger corresponding event.

0.6.0

  • Pass only a single callback to save/destroy which is called with a boolean to indicate success/failure.
  • Bundle release into a single, versioned Javascript file plus minified version.
  • Change behaviour of Model.Collection and don't let duplicates (scoped by id) of the same model to be stored. [Laurie Young]

0.5.1

  • Fix that setting a null value with attr should be read back correctly from changes.
  • errors array shouldn't have to be manually reset when implementing validate.

0.5.0

  • First tagged release.
Jump to Line
Something went wrong with that request. Please try again.