11/**
22 * @author Jason Dobry <jason.dobry@gmail.com>
33 * @file angular-data.js
4- * @version 0.8.0 - Homepage <http://angular-data.codetrain.io/>
4+ * @version 0.8.1 - Homepage <http://angular-data.codetrain.io/>
55 * @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
66 * @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
77 *
@@ -1931,6 +1931,9 @@ function find(resourceName, id, options) {
19311931 } else {
19321932 return data ;
19331933 }
1934+ } , function ( err ) {
1935+ delete resource . pendingQueries [ id ] ;
1936+ return err ;
19341937 } ) ;
19351938 }
19361939
@@ -2000,6 +2003,9 @@ function _findAll(utils, resourceName, params, options) {
20002003 } else {
20012004 return data ;
20022005 }
2006+ } , function ( err ) {
2007+ delete resource . pendingQueries [ queryHash ] ;
2008+ return err ;
20032009 } ) ;
20042010 }
20052011
@@ -3854,7 +3860,7 @@ module.exports = [function () {
38543860 * @id angular-data
38553861 * @name angular-data
38563862 * @description
3857- * __Version:__ 0.8.0
3863+ * __Version:__ 0.8.1
38583864 *
38593865 * ## Install
38603866 *
@@ -3873,7 +3879,7 @@ module.exports = [function () {
38733879 * Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
38743880 *
38753881 * #### Manual download
3876- * Download angular-data.0.8.0 .js from the [Releases](https://github.com/jmdobry/angular-data/releases)
3882+ * Download angular-data.0.8.1 .js from the [Releases](https://github.com/jmdobry/angular-data/releases)
38773883 * section of the angular-data GitHub project.
38783884 *
38793885 * ## Load into Angular
@@ -3896,7 +3902,7 @@ module.exports = [function () {
38963902 . provider ( 'DSHttpAdapter' , require ( './adapters/http' ) )
38973903 . provider ( 'DS' , require ( './datastore' ) )
38983904 . config ( [ '$provide' , function ( $provide ) {
3899- $provide . decorator ( '$q' , function ( $delegate ) {
3905+ $provide . decorator ( '$q' , [ '$delegate' , function ( $delegate ) {
39003906 // do whatever you you want
39013907 $delegate . promisify = function ( fn , target ) {
39023908 var _this = this ;
@@ -3922,7 +3928,7 @@ module.exports = [function () {
39223928 } ;
39233929 } ;
39243930 return $delegate ;
3925- } ) ;
3931+ } ] ) ;
39263932 } ] ) ;
39273933
39283934} ) ( window , window . angular ) ;
0 commit comments