Skip to content

Commit

Permalink
release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdonohoo committed Jan 28, 2015
1 parent e6cc231 commit 553c886
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resourcify",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
"Erik Donohoo <[email protected]>"
],
Expand Down
12 changes: 6 additions & 6 deletions dist/resourcify.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function resourcificator ($http, $q, utils, Cache) {
value.$resolved = true;
value.$url = url;
success(value);
config.$defer.resolve(value);
value.$$defer.resolve(value);
}

var httpConfig = {
Expand All @@ -285,7 +285,7 @@ function resourcificator ($http, $q, utils, Cache) {
var cache = config.$Const.$$builder.cache;
if (cache && !config.noCache && !config.$force) {
if (!angular.isArray(value)) {
var cValue = cache.get(cache.getKey(angular.extend(config.params, value)));
var cValue = cache.get(cache.getKey(angular.extend(value.$$params, value)));
if (cValue && !cValue.$invalid) {
cValue.$promise = value.$promise;
value = cValue;
Expand Down Expand Up @@ -364,7 +364,7 @@ function resourcificator ($http, $q, utils, Cache) {

}, function rejection(err) {
error(err);
config.$defer.reject(err);
value.$$defer.reject(err);
});
}

Expand Down Expand Up @@ -474,9 +474,9 @@ function resourcificator ($http, $q, utils, Cache) {
}
}

config.$defer = $q.defer();
config.params = params;
value.$promise = config.$defer.promise;
value.$$defer = $q.defer();
value.$$params = params;
value.$promise = value.$$defer.promise;
value.$resolved = false;

// Resolve path
Expand Down
4 changes: 2 additions & 2 deletions dist/resourcify.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resourcify",
"version": "1.0.0",
"version": "1.0.1",
"description": "Dead simple rich data models for angular",
"main": "Gruntfile.js",
"scripts": {
Expand Down

0 comments on commit 553c886

Please sign in to comment.