Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8+ fires onstorage handler in window that performed storage #1

Open
benvinegar opened this issue Mar 12, 2013 · 0 comments
Open

IE8+ fires onstorage handler in window that performed storage #1

benvinegar opened this issue Mar 12, 2013 · 0 comments

Comments

@benvinegar
Copy link
Collaborator

In Internet Explorer, when UniqueModel syncs to localStorage, IE fires an onstorage event in the same window. We're listening for that event, and we read back the data we just saved, and redundantly update the memory cache.

The evt object includes a url property, which is the url of the window that triggered the event, but we can't use that to reject the event because you could have two windows with the same URL. We'll probably need to include some kind of meta information in the localStorage record about which context created it.

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

No branches or pull requests

1 participant