Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
a3a04bfe
Commit
a3a04bfe
authored
Sep 13, 2014
by
Heinrich Fenkart
Browse files
Options
Browse Files
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
js/tooltip.js
js/tooltip.js
+6
-2
No files found.
js/tooltip.js
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
)
})
}
}
...
...
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