Skip to content

Commit

Permalink
Stable Version 2.2.1.
Browse files Browse the repository at this point in the history
Fixes #311
  • Loading branch information
jmdobry committed Feb 27, 2015
1 parent 155e030 commit 655d817
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
##### 2.2.1 - 25 February 2015

###### Backwards compatible bug fixes
- #311 - Does not properly throw error in find() (like other adapters) when the item cannot be found

##### 2.2.0 - 24 February 2015

###### Backwards compatible API changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Js-data-angular is Angular-data 2.0, with [js-data](http://www.js-data.io) as th
| Branch | Master |
| ------ | ------ |
| Bower | [![Bower version](https://badge.fury.io/bo/js-data-angular.png)](http://badge.fury.io/bo/js-data-angular) |
| NPM | [![NPM version](https://badge.fury.io/js/js-data-angular.png)](http://badge.fury.io/js/js-data-angular) |
| NPM | [![NPM](https://nodei.co/npm/js-data-angular.png?downloads=true&stars=true)](https://nodei.co/npm/js-data-angular/) |
| Build Status | [![Build Status](https://travis-ci.org/js-data/js-data-angular.png?branch=master)](https://travis-ci.org/js-data/js-data-angular) |
| Code Climate | [![Code Climate](https://codeclimate.com/github/js-data/js-data-angular.png)](https://codeclimate.com/github/js-data/js-data-angular) |
| Dependency Status | [![Dependency Status](https://gemnasium.com/js-data/js-data-angular.png)](https://gemnasium.com/js-data/js-data-angular) |
Expand Down
11 changes: 8 additions & 3 deletions dist/js-data-angular.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @author Jason Dobry <[email protected]>
* @file js-data-angular.js
* @version 2.2.0 - Homepage <http://www.js-data.io/js-data-angular/>
* @version 2.2.1 - Homepage <http://www.js-data.io/js-data-angular/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/js-data/js-data-angular/blob/master/LICENSE>
*
Expand Down Expand Up @@ -30,7 +30,7 @@

var DSUtils = JSData.DSUtils;

var deepMixIn = JSData.DSUtils.deepMixIn;
var deepMixIn = DSUtils.deepMixIn;
var httpLoaded = false;

var adapters = [
Expand Down Expand Up @@ -362,7 +362,12 @@
_this.getPath('find', resourceConfig, id, options),
options
).then(function (data) {
return (options.deserialize ? options.deserialize : _this.defaults.deserialize)(resourceConfig, data);
var item = (options.deserialize ? options.deserialize : _this.defaults.deserialize)(resourceConfig, data);
if (!item) {
return JSData.DSUtils.Promise.reject(new Error('Not Found!'));
} else {
return item;
}
});
};

Expand Down
4 changes: 2 additions & 2 deletions dist/js-data-angular.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 655d817

Please sign in to comment.