Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Error in iOS emulation mode in Chrome #53

Closed
MaKleSoft opened this issue Sep 1, 2014 · 6 comments · Fixed by #47
Closed

Error in iOS emulation mode in Chrome #53

MaKleSoft opened this issue Sep 1, 2014 · 6 comments · Fixed by #47

Comments

@MaKleSoft
Copy link

When emulating any iOS device in Chrome, I get this error:

Uncaught TypeError: Cannot read property 'addEventListener' of null
    platform-events.js:35(anonymous function)
    platform-events.js:35(anonymous function)

Here is the relevant portion of the code:

  if (isSafari) {
      // This line throws the exception
      document.body.addEventListener('touchstart', function(){});
  }

I'm guessing this is a bug in Chrome rather than Polymer, but I decided to report it here since the issue did not occur in previous polymer versions (e.g. v0.3.2).

@MaKleSoft
Copy link
Author

Maybe this is related to #33?

@sbmaxx
Copy link
Contributor

sbmaxx commented Sep 1, 2014

I made pull request for this ;) #47

@dfreedm
Copy link
Contributor

dfreedm commented Sep 2, 2014

I think it might be premature to mark this as closed from #47, so I'll reopen.

@MaKleSoft, can you confirm that this fixes your issue?

@dfreedm dfreedm reopened this Sep 2, 2014
@MaKleSoft
Copy link
Author

I'll test this as soon as it lands in the Polymer/polymer bower package. But looking at the PR, it seems likely that it solves the problem.

@MaKleSoft
Copy link
Author

Sorry, forgot that this is still open. Yeah, it's fixed.

@jenyckee
Copy link

jenyckee commented Apr 8, 2015

I'm still having the same problem on ipad and chrome ipad emulation
this project, https://github.com/jenyckee/disco
Chrome Version 41.0.2272.118 (64-bit)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants