Releases: curran/model
Releases · curran/model
NPM Support
This project is now available as model-js
in NPM.
JSPM Support
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
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
Removed Bootstrap as a Bower dependency (should not have been there in the first place).
Bower fix
This rules
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.