fix(angular-poll-channel): wrap scope change in
This commit is contained in:
parent
3cc2838ee8
commit
01434decc4
1 changed files with 4 additions and 3 deletions
7
static/js/services/angular-poll-channel.js
vendored
7
static/js/services/angular-poll-channel.js
vendored
|
@ -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;
|
||||
}]);
|
||||
}]);
|
||||
|
|
Reference in a new issue