Skip to content

Commit 97a1951

Browse files
committed
Fixes #191.
Stable Version 1.0.0-rc.2-1.
1 parent 6ac4ccf commit 97a1951

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
##### 1.0.0-rc.2-1 - 25 September 2014
2+
3+
###### Backwards compatible bug fixes
4+
- #191 - Invalid reference in _eject
5+
16
##### 1.0.0-rc.2 - 25 September 2014
27

3-
###### Backwards compatible API changes
4-
- #145 - Add "useClass" option to inject, find, findAll, create
8+
###### Backwards compatible bug fixes
9+
- #191 - Add "useClass" option to inject, find, findAll, create
510
- #155 - Allow deserialize and serialize to be configured per-method as well
611
- #159 - Find which items from collection have changed with lastModified
712
- #161 - Allow the http method of DSHttpAdapter methods to be configured

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Unlike Backbone and Ember Models, angular-data does not require the use of gette
88

99
Supporting relations, computed properties, model lifecycle control and a slew of other features, angular-data is the tool for giving your data the respect it deserves.
1010

11-
__Latest Release:__ [1.0.0-rc.1](http://angular-data.pseudobry.com/)
12-
__master:__ [1.0.0-rc.2](http://angular-data-next.pseudobry.com/)
11+
__Latest Release:__ [1.0.0-rc.2-1](http://angular-data.pseudobry.com/)
12+
__master:__ [1.0.0-rc.2-1](http://angular-data-next.pseudobry.com/)
1313

1414
Angular-data is in a 1.0.0 Beta. The API is rather stable and angular-data is well tested.
1515

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Jason Dobry",
33
"name": "angular-data",
44
"description": "Data store for Angular.js.",
5-
"version": "1.0.0-rc.2",
5+
"version": "1.0.0-rc.2-1",
66
"homepage": "http://angular-data.pseudobry.com/",
77
"repository": {
88
"type": "git",

dist/angular-data.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @author Jason Dobry <[email protected]>
33
* @file angular-data.js
4-
* @version 1.0.0-rc.2 - Homepage <http://angular-data.pseudobry.com/>
4+
* @version 1.0.0-rc.2-1 - Homepage <http://angular-data.pseudobry.com/>
55
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
66
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
77
*
@@ -5718,6 +5718,7 @@ function errorPrefix(resourceName, id) {
57185718

57195719
function _eject(definition, resource, id, options) {
57205720
var item;
5721+
var DS = this;
57215722
var found = false;
57225723
for (var i = 0; i < resource.collection.length; i++) {
57235724
if (resource.collection[i][definition.idAttribute] == id) {
@@ -7186,7 +7187,9 @@ function _unlinkInverse(definition, linked) {
71867187
index = i;
71877188
}
71887189
});
7189-
item[def.localField].splice(index, 1);
7190+
if (index !== undefined) {
7191+
item[def.localField].splice(index, 1);
7192+
}
71907193
} else if (item[def.localField] === linked) {
71917194
delete item[def.localField];
71927195
}

dist/angular-data.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-data",
33
"description": "Data store for Angular.js.",
4-
"version": "1.0.0-rc.2",
4+
"version": "1.0.0-rc.2-1",
55
"homepage": "http://angular-data.pseudobry.com",
66
"repository": {
77
"type": "git",

src/datastore/sync_methods/eject.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ function errorPrefix(resourceName, id) {
44

55
function _eject(definition, resource, id, options) {
66
var item;
7+
var DS = this;
78
var found = false;
89
for (var i = 0; i < resource.collection.length; i++) {
910
if (resource.collection[i][definition.idAttribute] == id) {

0 commit comments

Comments
 (0)