angular-faye
angular-faye copied to clipboard
Change to use timeout instead of apply
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.