-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
77 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
kotlin("jvm") version "1.4.31" | ||
kotlin("jvm") version "1.6.10" | ||
} | ||
|
||
repositories { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
package org.w3c.dom.events | ||
|
||
@Suppress("HEADER_WITHOUT_IMPLEMENTATION", "NO_ACTUAL_FOR_EXPECT") | ||
expect interface Event { | ||
fun stopPropagation() | ||
fun preventDefault() | ||
|
||
fun initEvent( | ||
eventTypeArg: String, | ||
canBubbleArg: Boolean, | ||
cancelableArg: Boolean | ||
) | ||
fun initEvent(eventTypeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.w3c.dom.events // ktlint-disable filename | ||
|
||
import org.w3c.dom.* | ||
|
||
public actual external interface Event { | ||
val type: String | ||
val target: EventTarget? | ||
val currentTarget: EventTarget? | ||
val eventPhase: Short | ||
val bubbles: Boolean | ||
val cancelable: Boolean | ||
val defaultPrevented: Boolean | ||
val composed: Boolean | ||
val isTrusted: Boolean | ||
val timeStamp: Number | ||
|
||
fun stopImmediatePropagation() | ||
fun composedPath(): Array<EventTarget> | ||
|
||
actual fun stopPropagation() | ||
actual fun preventDefault() | ||
actual fun initEvent(eventTypeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.w3c.dom.events // ktlint-disable filename | ||
|
||
actual interface Event { | ||
actual fun stopPropagation() | ||
actual fun preventDefault() | ||
actual fun initEvent(eventTypeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.w3c.dom.events // ktlint-disable filename | ||
|
||
actual interface Event { | ||
actual fun stopPropagation() | ||
actual fun preventDefault() | ||
|
||
actual fun initEvent( | ||
eventTypeArg: String, | ||
canBubbleArg: Boolean, | ||
cancelableArg: Boolean | ||
) | ||
} |