Skip to content

Commit

Permalink
Fixed DI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Feb 26, 2015
1 parent 29d1518 commit 9f0872b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ var app = angular.module('baw',
// only show bar after waiting for 200ms
cfpLoadingBarProvider.latencyThreshold = 200;
// add a standard way to add ignores to http objects
$provide.decorator('cfpLoadingBar', function ($delegate) {
$provide.decorator('cfpLoadingBar', ["$delegate", function ($delegate) {
$delegate.ignore = function ($httpConfig) {
return $httpConfig && ($httpConfig.ignoreLoadingBar = true, $httpConfig) || $httpConfig;
};
return $delegate;
});
}]);
}])


Expand Down

0 comments on commit 9f0872b

Please sign in to comment.