-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* @author Jason Dobry <[email protected]> | ||
* @file angular-data.js | ||
* @version 0.8.0 - Homepage <http://angular-data.codetrain.io/> | ||
* @version 0.8.1 - Homepage <http://angular-data.codetrain.io/> | ||
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/> | ||
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE> | ||
* | ||
|
@@ -1931,6 +1931,9 @@ function find(resourceName, id, options) { | |
} else { | ||
return data; | ||
} | ||
}, function (err) { | ||
delete resource.pendingQueries[id]; | ||
return err; | ||
}); | ||
} | ||
|
||
|
@@ -2000,6 +2003,9 @@ function _findAll(utils, resourceName, params, options) { | |
} else { | ||
return data; | ||
} | ||
}, function (err) { | ||
delete resource.pendingQueries[queryHash]; | ||
return err; | ||
}); | ||
} | ||
|
||
|
@@ -3854,7 +3860,7 @@ module.exports = [function () { | |
* @id angular-data | ||
* @name angular-data | ||
* @description | ||
* __Version:__ 0.8.0 | ||
* __Version:__ 0.8.1 | ||
* | ||
* ## Install | ||
* | ||
|
@@ -3873,7 +3879,7 @@ module.exports = [function () { | |
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js. | ||
* | ||
* #### Manual download | ||
* Download angular-data.0.8.0.js from the [Releases](https://github.com/jmdobry/angular-data/releases) | ||
* Download angular-data.0.8.1.js from the [Releases](https://github.com/jmdobry/angular-data/releases) | ||
* section of the angular-data GitHub project. | ||
* | ||
* ## Load into Angular | ||
|
@@ -3896,7 +3902,7 @@ module.exports = [function () { | |
.provider('DSHttpAdapter', require('./adapters/http')) | ||
.provider('DS', require('./datastore')) | ||
.config(['$provide', function ($provide) { | ||
$provide.decorator('$q', function ($delegate) { | ||
$provide.decorator('$q', ['$delegate', function ($delegate) { | ||
// do whatever you you want | ||
$delegate.promisify = function (fn, target) { | ||
var _this = this; | ||
|
@@ -3922,7 +3928,7 @@ module.exports = [function () { | |
}; | ||
}; | ||
return $delegate; | ||
}); | ||
}]); | ||
}]); | ||
|
||
})(window, window.angular); | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a307b26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #44
a307b26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #47