angular-faye icon indicating copy to clipboard operation
angular-faye copied to clipboard

Change to use timeout instead of apply

Open criles25 opened this issue 8 years ago • 0 comments

My team is using angular-faye, and we have ran into an issue where we periodically get [$rootScope:inprog] $digest already in progress. The stack trace shows angular-faye calling $apply, which causes an error when another $digest or $apply is in progress.

If we use $timeout instead, it will safely trigger a $digest cycle.

criles25 avatar Nov 01 '17 20:11 criles25