Skip to content

Remove unnecessary $apply & fix test for it - #11

Open
kalekseev wants to merge 1 commit into
arunisrael:masterfrom
kalekseev:fix-unsupported-geolocation
Open

Remove unnecessary $apply & fix test for it#11
kalekseev wants to merge 1 commit into
arunisrael:masterfrom
kalekseev:fix-unsupported-geolocation

Conversation

@kalekseev

Copy link
Copy Markdown

If browser doesn't support navigator then angular invokes reject already inside $digest, so it throws error $apply already in progress.

Test didn't work because $window.navigator = {geolocation:false}; didn't change $window, I've mocked it in $window provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant