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

IE/Edge WeakMap cannot use cross-window nodes as keys #35

Closed
brianmhunt opened this issue Jul 21, 2017 · 0 comments
Closed

IE/Edge WeakMap cannot use cross-window nodes as keys #35

brianmhunt opened this issue Jul 21, 2017 · 0 comments

Comments

@brianmhunt
Copy link
Member

brianmhunt commented Jul 21, 2017

Per @mbest's comment here knockout/knockout#2141 (comment)

Workaround:

var data = node.ownerDocument[dataStoreKeyExpandoPropertyName] ||
    (node.ownerDocument[dataStoreKeyExpandoPropertyName] =
        new node.ownerDocument.defaultView.WeakMap());
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