aboutsummaryrefslogtreecommitdiffstats
path: root/src/services.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services.js')
-rw-r--r--src/services.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/services.js b/src/services.js
index f7661310..d49b5370 100644
--- a/src/services.js
+++ b/src/services.js
@@ -819,12 +819,16 @@ angularServiceInject('$xhr.bulk', function($xhr, $error, $log){
* @param {function()} fn A function, who's execution should be deferred.
*/
angularServiceInject('$defer', function($browser, $exceptionHandler) {
+ var scope = this;
+
return function(fn) {
$browser.defer(function() {
try {
fn();
} catch(e) {
$exceptionHandler(e);
+ } finally {
+ scope.$eval();
}
});
};