From 01434decc42395ad4515f53d2fe34868fdb9c0ad Mon Sep 17 00:00:00 2001 From: EvB Date: Mon, 30 Jan 2017 14:37:45 -0500 Subject: [PATCH] fix(angular-poll-channel): wrap scope change in --- static/js/services/angular-poll-channel.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/services/angular-poll-channel.js b/static/js/services/angular-poll-channel.js index 98b69e664..368978d73 100644 --- a/static/js/services/angular-poll-channel.js +++ b/static/js/services/angular-poll-channel.js @@ -72,7 +72,8 @@ angular.module('quay').factory('AngularPollChannel', var that = this; this.working = true; - this.scope_.$apply(function() { + + $timeout(function() { that.requester_(function(status) { if (status) { that.working = false; @@ -82,7 +83,7 @@ angular.module('quay').factory('AngularPollChannel', that.stop(); } }); - }); + }, 0); }; _PollChannel.prototype.setupTimer_ = function() { @@ -103,4 +104,4 @@ angular.module('quay').factory('AngularPollChannel', }; return service; -}]); \ No newline at end of file +}]);