improve deprecation message
This commit is contained in:
parent
c8c7b13d2f
commit
fc9f9312ef
2 changed files with 5 additions and 5 deletions
|
|
@ -713,7 +713,7 @@ proc addEventHandler*(n: VNode; k: EventKind; action: proc();
|
|||
if not kxi.surpressRedraws: redraw(kxi)
|
||||
addEventListener(n, k, wrapper)
|
||||
|
||||
proc setOnHashChange*(action: proc (hashPart: cstring)) {.deprecated.} =
|
||||
proc setOnHashChange*(action: proc (hashPart: cstring)) {.deprecated: "use setRenderer instead".} =
|
||||
## Now deprecated, instead pass a callback to ``setRenderer`` that receives
|
||||
## a ``data: RouterData`` parameter.
|
||||
proc wrapper() =
|
||||
|
|
|
|||
|
|
@ -438,7 +438,7 @@ type
|
|||
key*: cstring
|
||||
keyCode*: int
|
||||
location*: int
|
||||
|
||||
|
||||
# https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
|
||||
KeyboardEventKey* {.pure.} = enum
|
||||
# Modifier keys
|
||||
|
|
@ -828,7 +828,7 @@ type
|
|||
items*: seq[DataTransferItem]
|
||||
types*: seq[cstring]
|
||||
|
||||
DataTransferDropEffect* {.pure.} = enum
|
||||
DataTransferDropEffect* {.pure.} = enum
|
||||
None = "none",
|
||||
Copy = "copy",
|
||||
Link = "link",
|
||||
|
|
@ -860,7 +860,7 @@ type
|
|||
dataTransfer*: DataTransfer
|
||||
|
||||
TouchList* {.importc.} = ref object of RootObj
|
||||
length*: int
|
||||
length*: int
|
||||
|
||||
Touch* = ref TouchObj
|
||||
TouchObj {.importc.} = object of RootObj
|
||||
|
|
@ -1142,7 +1142,7 @@ proc setAttribute*(s: Style, attr, value: cstring, caseSensitive=false)
|
|||
proc preventDefault*(ev: Event)
|
||||
proc stopImmediatePropagation*(ev: Event)
|
||||
proc stopPropagation*(ev: Event)
|
||||
|
||||
|
||||
# KeyboardEvent "methods"
|
||||
proc getModifierState*(ev: KeyboardEvent, keyArg: cstring): bool
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue