Skip to content

fix: handle case when storage events are synchronous - #31

Open
kombucha wants to merge 1 commit into
gsklee:masterfrom
kombucha:synchronous-eventlistener-fix
Open

kombucha wants to merge 1 commit into
gsklee:masterfrom
kombucha:synchronous-eventlistener-fix

Conversation

@kombucha

@kombucha kombucha commented Jan 9, 2014

Copy link
Copy Markdown

Hi,

I was having some issues with ngStorage on windows phone 8 (ie 10). I found out that storage events were fired synchronously, and it messed up the in-memory/webStorage merging. I worked around this by postponing the code in the event listener to the next event cycle with setTimeout(fn, 0).

Cheers

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