Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Uncaught Reference Error: WeakMap is not defined #123

Closed
dethe opened this issue Jan 28, 2014 · 2 comments
Closed

Uncaught Reference Error: WeakMap is not defined #123

dethe opened this issue Jan 28, 2014 · 2 comments

Comments

@dethe
Copy link

dethe commented Jan 28, 2014

Browser: Chrome for Android 32.
OS: Android 4.4.2, Nexus 7

PointerEvents.min.js (built from github repo on 2014-01-25) is throwing an exception, "Uncaught Reference Error: WeakMap is not defined". I've seen this in Chrome for Android, but I'm also getting reports from my upstream users that PointerEvents-based drag-and-drop isn't working on Windows 8 with either mouse or touch interfaces.

I'm seeing the same issue in PointerGestures.min.js built similarly.

I'm not receiving PointerEvents in Safari 7.01 (desktop) either, but not seeing an exception there, so not sure what is going on.

dfreedm added a commit that referenced this issue Jan 28, 2014
dfreedm added a commit to googlearchive/PointerGestures that referenced this issue Jan 28, 2014
@dfreedm
Copy link
Contributor

dfreedm commented Jan 28, 2014

PointerEvents and PointerGestures depend on the WeakMap library.
Before b0dd7bd and googlearchive/PointerGestures@0cded24 grunt did not warn on missing that dependency, which I think is probably the problem here.

It may interest you to note that I do distribute PointerEvents in bower as pointerevents-polyfill. PointerGestures is not distributed this way, though if there's demand I can look into doing that.

@dethe
Copy link
Author

dethe commented Jan 29, 2014

Got it, thanks! Working now in Safari desktop, I will test on Android when I get home and ask my student to test on Windows 8.

@dethe dethe closed this as completed Jan 29, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants