Skip to content

Releases: curran/model

NPM Support

03 Sep 20:05
Compare
Choose a tag to compare

This project is now available as model-js in NPM.

JSPM Support

15 May 18:49
Compare
Choose a tag to compare

This release contains a small change to package.js that makes Model.js work well with JSPM, an amazing package manager. With this release, you can now install Model.js in a JSPM project using the following command:

jspm install model=github:curran/model

Simplified

12 Mar 22:32
Compare
Choose a tag to compare

This release contains a refactored and simplified implementation of Model.js. Changes include:

  • Module exposure as AMD, NodeJS and browser global.
  • Exposing the "on" and "off" methods of models.
  • API name change: "removeListeners" changed to "cancel".
  • Removed support for detecting data flow graphs at runtime, in order to simplify the code.
  • Clean, refactored code.

No Bower Dependencies

13 Nov 07:11
Compare
Choose a tag to compare

Removed Bootstrap as a Bower dependency (should not have been there in the first place).

Bower fix

04 Nov 22:15
Compare
Choose a tag to compare

Updated broken bower.json file.

This rules

04 Nov 22:07
Compare
Choose a tag to compare

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.