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

asap uses timer, not MutationObserver, in Safari #62

Open
miedmondson opened this issue Sep 4, 2015 · 1 comment
Open

asap uses timer, not MutationObserver, in Safari #62

miedmondson opened this issue Sep 4, 2015 · 1 comment

Comments

@miedmondson
Copy link

asap does not use makeRequestCallFromMutationObserver because if (typeof BrowserMutationObserver === "function") fails: typeof MutationObserver returns "object" in Safari (observed in versions 7-9).

Object.prototype.toString.call(MutationObserver) returns "[object MutationObserverConstructor]".

@rkatic
Copy link
Collaborator

rkatic commented Sep 10, 2015

Knowing that host/native constructors have sometimes typeof equal to "object", in P the check of existence of a constructor consists in typeof x === "function || typeof y === "object".
I suggest to do similarly here.

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

2 participants