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

Should init*Event methods clear the sourceDevice? #12

Open
RByers opened this issue Jul 7, 2015 · 1 comment
Open

Should init*Event methods clear the sourceDevice? #12

RByers opened this issue Jul 7, 2015 · 1 comment

Comments

@RByers
Copy link
Member

RByers commented Jul 7, 2015

How should this code behave?

var e = new UIEvent("test", {sourceDevice: new InputDevice()});
e.initUIEvent("test2", false, false, null, 0);
console.log(e.sourceDevice);

Although the init*Event methods are deprecated, we should probably still define (and test) this behavior. It's a pretty minor edge case though, unlikely to come up in practice I think.

@RByers
Copy link
Member Author

RByers commented Jul 7, 2015

FWIW It looks like the prototype blink implementation does clear sourceDevice in this case.

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

No branches or pull requests

1 participant