-
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.
fix: Alias Event to org.w3c.dom.events.Event #235
- Loading branch information
Showing
9 changed files
with
628 additions
and
378 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,8 +1,8 @@ | ||
package kotlinx.html.org.w3c.dom.events | ||
|
||
expect interface Event { | ||
expect open class Event { | ||
fun stopPropagation() | ||
fun preventDefault() | ||
|
||
fun initEvent(eventTypeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean) | ||
fun initEvent(type: String, bubbles: Boolean, cancelable: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
package kotlinx.html.org.w3c.dom.events // ktlint-disable filename | ||
|
||
import org.w3c.dom.events.EventTarget | ||
|
||
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) | ||
} | ||
actual typealias Event = org.w3c.dom.events.Event |
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,7 +1,8 @@ | ||
package kotlinx.html.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) | ||
actual open class Event { | ||
actual open fun stopPropagation() {} | ||
actual open fun preventDefault() {} | ||
|
||
actual open fun initEvent(type: String, bubbles: Boolean, cancelable: 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 |
---|---|---|
@@ -1,12 +1,8 @@ | ||
package kotlinx.html.org.w3c.dom.events // ktlint-disable filename | ||
|
||
actual interface Event { | ||
actual fun stopPropagation() | ||
actual fun preventDefault() | ||
actual open class Event { | ||
actual open fun stopPropagation() {} | ||
actual open fun preventDefault() {} | ||
|
||
actual fun initEvent( | ||
eventTypeArg: String, | ||
canBubbleArg: Boolean, | ||
cancelableArg: Boolean | ||
) | ||
actual open fun initEvent(type: String, bubbles: Boolean, cancelable: Boolean) {} | ||
} |