Skip to content

Commit

Permalink
bump and build v1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Apr 12, 2014
1 parent 89b7a74 commit 5998911
Show file tree
Hide file tree
Showing 13 changed files with 2,718 additions and 2,395 deletions.
2 changes: 1 addition & 1 deletion bower.json
Expand Up @@ -6,7 +6,7 @@
"./lib/backbone.marionette.js",
"./lib/core/amd/backbone.marionette.js"
],
"version": "1.7.4",
"version": "1.8.0",
"keywords": [
"backbone",
"framework",
Expand Down
52 changes: 52 additions & 0 deletions changelog.md
@@ -1,3 +1,55 @@
### v1.8.0 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.7.4...v1.8.0)

* General
* Update Gruntfile.
* The default task (`grunt`) now runs tests.
* `$ grunt dev` watch for watching.
* `$ grunt build` runs the tests and compiles.
* Add better inline documentation for module implementation.
* Add better inline behavior documentation.

* Fixes
* Behaviors now correctly lookup methods for `modelEvents` and `collectionEvents`.
* The `CollectionView` now triggers close on its children in the correct order.

* Features
* Add `onRoute` to the `appRouter`.
```js
Backbone.Marionette.AppRouter.extend({
onRoute: function(route, params) {
}
})
```
* `Region.show` now takes an option to prevent closing the previous view in the region. By default a region will automatically close the previous view, however you can prevent this behavior by passing `{preventDestroy: true}` in the options parameter.
```js
myRegion.show(view2, { preventDestroy: true })
```
* Add a `getRegion` method to `Layout`. This is in line with the eventual goal of not attaching regions to the root layout object.
* Behavior instances now extend from Backbone.Events, allowing you to use `.listenTo` and `.on`.

* Allow Behaviors to have a functional hash lookup.
```js
Marionette.ItemView.extend({
behaviors: function() {
// “this” will refer to the view instance
return : {
BehaviorA: {}
}
}
})
```
* RegionManagers now calls `stopListening` on a regions on removal.

* Refactors
* Abstract underscore collection method mixin into a generic helper.
* Use built in marionette extend for behaviors.

* Tests
* Add a whitespace linter to the text coverage. Trailing whitespace now causes travis.ci to fail.
* Add test coverage for `bindEntitiyEvents` and `unbindEntityEvents`.
* Test public API for the `regionManager`.
* Improve view trigger tests for better control when testing.

### v1.7.4 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.7.3...v1.7.4)

* General
Expand Down
2 changes: 1 addition & 1 deletion component.json
@@ -1,7 +1,7 @@
{
"name": "backbone.marionette",
"description": "Make your Backbone.js apps dance!",
"version": "1.7.4",
"version": "1.8.0",
"repo": "marionettejs/backbone.marionette",
"main": "lib/core/amd/backbone.marionette.js",
"keywords": [
Expand Down

0 comments on commit 5998911

Please sign in to comment.