Skip to content

This rules

Compare
Choose a tag to compare
@curran curran released this 04 Nov 22:07
· 63 commits to gh-pages since this release

An API change: you can now use the keyword "this" inside the when() callback to refer to the model instance.

This enables the following code:

person.when(["firstName", "lastName"], function (firstName, lastName) {
  this.fullName = firstName + " " + lastName;
});

Thanks to mathiasrw for this contribution.