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
a3a04bfe
Commit
a3a04bfe
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Plain Diff
Merge pull request #14571 from twbs/properly-hide-tooltip-on-destroy
Properly fire hidden event when tooltip is destroyed
parents
0fe48a78
76762169
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tooltip.js
+6
-2
js/tooltip.js
with
6 additions
and
2 deletions
+6
-2
js/tooltip.js
+
6
-
2
View file @
a3a04bfe
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
$tip
.
removeClass
(
'
fade in top bottom left right
'
)
$tip
.
removeClass
(
'
fade in top bottom left right
'
)
}
}
Tooltip
.
prototype
.
hide
=
function
()
{
Tooltip
.
prototype
.
hide
=
function
(
callback
)
{
var
that
=
this
var
that
=
this
var
$tip
=
this
.
tip
()
var
$tip
=
this
.
tip
()
var
e
=
$
.
Event
(
'
hide.bs.
'
+
this
.
type
)
var
e
=
$
.
Event
(
'
hide.bs.
'
+
this
.
type
)
...
@@ -291,6 +291,7 @@
...
@@ -291,6 +291,7 @@
that
.
$element
that
.
$element
.
removeAttr
(
'
aria-describedby
'
)
.
removeAttr
(
'
aria-describedby
'
)
.
trigger
(
'
hidden.bs.
'
+
that
.
type
)
.
trigger
(
'
hidden.bs.
'
+
that
.
type
)
callback
&&
callback
()
}
}
this
.
$element
.
trigger
(
e
)
this
.
$element
.
trigger
(
e
)
...
@@ -438,8 +439,11 @@
...
@@ -438,8 +439,11 @@
}
}
Tooltip
.
prototype
.
destroy
=
function
()
{
Tooltip
.
prototype
.
destroy
=
function
()
{
var
that
=
this
clearTimeout
(
this
.
timeout
)
clearTimeout
(
this
.
timeout
)
this
.
hide
().
$element
.
off
(
'
.
'
+
this
.
type
).
removeData
(
'
bs.
'
+
this
.
type
)
this
.
hide
(
function
()
{
that
.
$element
.
off
(
'
.
'
+
that
.
type
).
removeData
(
'
bs.
'
+
that
.
type
)
})
}
}
...
...
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