Explicitly expose MouseEvent only in Window

This commit is contained in:
Anthony Ramine 2017-01-21 01:28:21 +01:00
parent 2221203359
commit ba0bf3a066

View file

@ -3,7 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://w3c.github.io/uievents/#interface-mouseevent
[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict)]
[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict),
Exposed=Window]
interface MouseEvent : UIEvent {
readonly attribute long screenX;
readonly attribute long screenY;