Skip to content

Commit 31feca8

Browse files
committed
Update documentation to reflect how the global list of callbacks, command and inputs is kind of broken.
1 parent 8df6e74 commit 31feca8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

documentation/docs/runtime-options.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ The element triggering the menu.
8383

8484
### callbacks
8585

86-
Registered [callbacks](#callback) of all commands (including those of sub-menus).
86+
Registered [callbacks](#callback) of all commands (including those of sub-menus).
87+
88+
Warning: If you use the same keys for an item in any place, it will overwrite that callback here.
8789

8890
`callbacks`: `array`
8991

@@ -92,12 +94,16 @@ Registered [callbacks](#callback) of all commands (including those of sub-menus)
9294

9395
Registered commands (including those of sub-menus).
9496

97+
Warning: If you use the same keys for an item in any place, it will overwrite that command here.
98+
9599
`commands`: `array`
96100

97101
### inputs
98102

99103
Registered commands of input-type (including those of sub-menus).
100104

105+
Warning: If you use the same keys for an item in any place, it will overwrite that command here.
106+
101107
Access a specific `<input>`: `opt.inputs[key].$input`
102108

103109
`inputs`: `jQuery element`

0 commit comments

Comments
 (0)