Skip to content

Commit 8cc8ac6

Browse files
Bashamegasaschanaz
andauthored
Migrate EventListenerObject to KDL (#2328)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent d3657d7 commit 8cc8ac6

File tree

2 files changed

+13
-20
lines changed

2 files changed

+13
-20
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -234,19 +234,6 @@
234234
"extends": "DOMRect",
235235
"noInterfaceObject": true
236236
},
237-
"EventListenerObject": {
238-
"name": "EventListenerObject",
239-
"noInterfaceObject": true,
240-
"methods": {
241-
"method": {
242-
"handleEvent": {
243-
"overrideSignatures": [
244-
"handleEvent(object: Event): void"
245-
]
246-
}
247-
}
248-
}
249-
},
250237
"Document": {
251238
"methods": {
252239
"method": {

inputfiles/patches/dom.kdl

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
// Keeping EventListener and EventListenerObject isn't the most elegant way to handle the event listeners, but we need to keep the EventListener as an extendable interface for libraries like angular.
22
interface EventListener noInterfaceObject=#true {
3-
method "" returns=void {
4-
param evt type=Event
5-
}
3+
method "" returns=undefined {
4+
param evt type=Event
5+
}
6+
}
7+
8+
interface EventListenerObject noInterfaceObject=#true {
9+
method handleEvent returns=undefined {
10+
param object type=Event
11+
}
612
}
713

814
enum InsertPosition {
9-
beforebegin
10-
beforeend
11-
afterbegin
12-
afterend
15+
beforebegin
16+
beforeend
17+
afterbegin
18+
afterend
1319
}
1420

1521
// ChildNode and ParentNode are actually defined as mixins, but because of their names they have historically been used as a sub-interface of Node.

0 commit comments

Comments
 (0)