josephg / josephg/ShareJS

hext.html game fails, "window.event" error in Firefox

Open
#250 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
454
PR merge metrics
No merged PRs in 30d

Description

In Firefox 23.0 running http://sharejs.org/hex.html#dPtvIpWA=g , it doesn't work and I get

```
TypeError: e is undefined
http://sharejs.org/hex.html
Line 369
```

The line is

```
if (!e) var e = window.event;
if (e.pageX || e.pageY) {
```

There's no window.event in Firebug. There is a `window.Event` (capitalized) but it doesn't have pageX member; meanwhile the `ev` passed in does.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.