Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
retribute.me
webclient
Commits
0575b700
Verified
Commit
0575b700
authored
Jun 08, 2019
by
Eliot Berriot
Browse files
Fixed performance issue with tooltips generation
parent
b6ecc511
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/directives.js
View file @
0575b700
import
Vue
from
'
vue
'
Vue
.
directive
(
'
tooltip
'
,
{
inserted
:
function
(
el
)
{
let
elems
=
docu
ment
.
querySelectorAll
(
'
.tooltipped
'
)
let
elems
=
el
.
parentEle
ment
.
querySelectorAll
(
'
.tooltipped
'
)
M
.
Tooltip
.
init
(
elems
,
{})
}
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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