Skip to content

Commit

Permalink
Bump version to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulUithol committed Jul 22, 2011
1 parent 7f2ad14 commit 5edf53a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Backbone-relational depends on [backbone](https://github.com/documentcloud/backb
<script type="text/javascript" src="./js/backbone-relational.js"></script>
```

Backbone-relational has been tested with Backbone 0.5+.
Backbone-relational has been tested with Backbone 0.5.1 (or newer) and Underscore 1.1.6 (or newer).

## <a name="backbone-relation"/>Backbone.Relation options

Expand Down Expand Up @@ -167,7 +167,7 @@ Returns the set of initialized relations on the model.

Fetch models from the server that were referenced in the model's attributes, but have not been found/created yet. This can be used specifically for lazy-loading scenarios.

By default, a separate request will be fired for each additional model that is to be fetched from the server. However, if your server/API supports it, you can fetch the set of models in one request by specifying a `collectionType` for the relation you call `fetchRelated` on. The specificed `collectionType` should have an overridden `url(models<Backbone.Model[]>)` method. See the example at the top of [Backbone.Relation options](#backbone-relation) or [Backbone-tastypie](https://github.com/PaulUithol/backbone-tastypie/blob/master/backbone-tastypie.js#L74) for an example.
By default, a separate request will be fired for each additional model that is to be fetched from the server. However, if your server/API supports it, you can fetch the set of models in one request by specifying a `collectionType` for the relation you call `fetchRelated` on. The `collectionType` should have an overridden `url(models<Backbone.Model[]>)` method that allows it to construct a url for an array of models. See the example at the top of [Backbone.Relation options](#backbone-relation) or [Backbone-tastypie](https://github.com/PaulUithol/backbone-tastypie/blob/master/backbone-tastypie.js#L74) for an example.

### Events

Expand Down
2 changes: 1 addition & 1 deletion backbone-relational.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Backbone-relational.js 0.3
* Backbone-relational.js 0.4.0
* (c) 2011 Paul Uithol
*
* Backbone-relational may be freely distributed under the MIT license.
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name" : "backbone-rel",
"description" : "Provides one-to-one, one-to-many and many-to-one relations between models for Backbone",
"description" : "Get and set relations (one-to-one, one-to-many, many-to-one) for Backbone models",
"keywords" : ["Backbone", "relation", "nested", "model"],
"repository" : "git://github.com/PaulUithol/Backbone-relational.git",
"author" : "Paul Uithol",
"contributors" : ["Vladimir Dronnikov <[email protected]>"],
"author" : "Paul Uithol <https://github.com/PaulUithol>",
"contributors" : ["Vladimir Dronnikov <[email protected]>", "Jacob Henry (jachreny)", "Jens Alm (ulmus)"],
"dependencies" : {
"underscore": "",
"backbone": ""
"underscore": ">=1.1.6",
"backbone": ">=0.5.1"
},
"lib" : ".",
"main" : "backbone-relational.js",
"version" : "0.3"
"version" : "0.4.0"
}

0 comments on commit 5edf53a

Please sign in to comment.