Skip to content

Commit

Permalink
GH-2105: Add HTML5 ErrorEvent (#2109)
Browse files Browse the repository at this point in the history
* No structural types to allow instanceof
  • Loading branch information
dbo authored Apr 13, 2021
1 parent a3635ac commit 1fae8f2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export external public class DataTransfer {
public setData(type: string, data: string): void;
}

export external public class ~ClipBoardEvent extends Event {
export external public class ClipBoardEvent extends Event {
@Final public clipboardData: DataTransfer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* @see https://html.spec.whatwg.org/multipage/webappapis.html#runtime-script-errors
*/
export external public class ~ErrorEvent extends Event {
export external public class ErrorEvent extends Event {
public constructor(type: string, eventInitDict: Object+);

@Final public message: string;
Expand Down
2 changes: 1 addition & 1 deletion n4js-libs/packages/n4js-runtime-html5/src/n4js/Event.n4jsd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@@Global @@ProvidedByRuntime

export external public class ~Event {
export external public class Event {
public initEvent(type: string, bubbles: boolean=, cancelable: boolean=): void;

public stopPropagation(): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@@Global @@ProvidedByRuntime

export external public class ~KeyboardEvent extends Event {
export external public class KeyboardEvent extends Event {
public constructor(type: string, options: Object+);
@Final public keyCode: number;
@Final public shiftKey: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export external public class ~TouchList {
public item(index: int): Touch;
}

export external public class ~TouchEvent extends Event {
export external public class TouchEvent extends Event {
public initTouchEvent(type: string, bubbles: boolean=, cancelable: boolean=): void;

@Final public shiftKey: boolean;
Expand Down

0 comments on commit 1fae8f2

Please sign in to comment.