Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
8010c010
Commit
8010c010
authored
6 years ago
by
Johann-S
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(event-handler): use Object.key for passing values in an event
parent
a1cc9a6e
5 merge requests
!31948
Examples/Floating-labels: fix bad behavior with autofill
,
!30064
test
,
!29779
Responsive sizing
,
!28882
fix custom-select-indicator in IE10
,
!28721
Hot test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/dom/eventHandler.js
+8
-1
js/src/dom/eventHandler.js
with
8 additions
and
1 deletion
+8
-1
js/src/dom/eventHandler.js
+
8
-
1
View file @
8010c010
...
...
@@ -281,7 +281,14 @@ const EventHandler = (() => {
// merge custom informations in our event
if
(
typeof
args
!==
'
undefined
'
)
{
evt
=
Object
.
assign
(
evt
,
args
)
Object
.
keys
(
args
)
.
forEach
((
key
)
=>
{
Object
.
defineProperty
(
evt
,
key
,
{
get
()
{
return
args
[
key
]
}
})
})
}
if
(
defaultPrevented
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets