Skip to content

Commit cb134e9

Browse files
committed
Fixes #57.
1 parent f1c1228 commit cb134e9

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- #54 - Adding functionality to resources
1414
- #56 - DS.updateAll(resourceName, attrs, params[, options])
1515
- #60 - DSHttpAdapterProvider.defaults is undefined
16+
- #63 - DSLocalStorageAdapter
1617

1718
##### 0.8.1 - 02 May 2014
1819

dist/angular-data.js

+1
Original file line numberDiff line numberDiff line change
@@ -3702,6 +3702,7 @@ function Resource(utils, options) {
37023702
* - `{string="id"}` - `idAttribute` - The attribute that specifies the primary key for this resource.
37033703
* - `{string=}` - `endpoint` - The attribute that specifies the primary key for this resource. Default is the value of `name`.
37043704
* - `{string=}` - `baseUrl` - The url relative to which all AJAX requests will be made.
3705+
* - `{*=}` - `meta` - A property reserved for developer use. This will never be used by the API.
37053706
* - `{object=}` - `methods` - If provided, items of this resource will be wrapped in a constructor function that is
37063707
* empty save for the attributes in this option which will be mixed in to the constructor function prototype. Enabling
37073708
* this feature for this resource will incur a slight performance penalty, but allows you to give custom behavior to what

guide/angular-data/resource/resource.doc

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ DS.defineResource({
5858
} else if (!angular.isString(attrs.title)) {
5959
cb('title must be a string!');
6060
}
61+
},
62+
// the "meta" property is reserved for developer use
63+
// it will never be used by the API
64+
meta: {
65+
6166
}
6267
});
6368
```

src/datastore/sync_methods/defineResource.js

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function Resource(utils, options) {
5151
* - `{string="id"}` - `idAttribute` - The attribute that specifies the primary key for this resource.
5252
* - `{string=}` - `endpoint` - The attribute that specifies the primary key for this resource. Default is the value of `name`.
5353
* - `{string=}` - `baseUrl` - The url relative to which all AJAX requests will be made.
54+
* - `{*=}` - `meta` - A property reserved for developer use. This will never be used by the API.
5455
* - `{object=}` - `methods` - If provided, items of this resource will be wrapped in a constructor function that is
5556
* empty save for the attributes in this option which will be mixed in to the constructor function prototype. Enabling
5657
* this feature for this resource will incur a slight performance penalty, but allows you to give custom behavior to what

0 commit comments

Comments
 (0)