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
d600831a
Commit
d600831a
authored
9 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
add explicit error for lack of tether in tooltips - fixes
#17273
parent
a3d7f79a
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
dist/js/bootstrap.js
+8
-0
dist/js/bootstrap.js
dist/js/bootstrap.min.js
+1
-1
dist/js/bootstrap.min.js
dist/js/umd/tooltip.js
+8
-0
dist/js/umd/tooltip.js
js/dist/tooltip.js
+8
-0
js/dist/tooltip.js
js/dist/tooltip.js.map
+0
-0
js/dist/tooltip.js.map
js/src/tooltip.js
+8
-0
js/src/tooltip.js
with
33 additions
and
1 deletion
+33
-1
dist/js/bootstrap.js
+
8
-
0
View file @
d600831a
...
...
@@ -2764,6 +2764,14 @@ var Tab = (function ($) {
var
Tooltip
=
(
function
(
$
)
{
/**
* Check for Tether dependency
* Tether - http://github.hubspot.com/tether/
*/
if
(
!
window
.
Tether
)
{
throw
new
Error
(
"
Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)
"
);
}
/**
* ------------------------------------------------------------------------
* Constants
...
...
This diff is collapsed.
Click to expand it.
dist/js/bootstrap.min.js
+
1
-
1
View file @
d600831a
This diff is collapsed.
Click to expand it.
dist/js/umd/tooltip.js
+
8
-
0
View file @
d600831a
...
...
@@ -32,6 +32,14 @@
var
Tooltip
=
(
function
(
$
)
{
/**
* Check for Tether dependency
* Tether - http://github.hubspot.com/tether/
*/
if
(
!
window
.
Tether
)
{
throw
new
Error
(
"
Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)
"
);
}
/**
* ------------------------------------------------------------------------
* Constants
...
...
This diff is collapsed.
Click to expand it.
js/dist/tooltip.js
+
8
-
0
View file @
d600831a
...
...
@@ -15,6 +15,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var
Tooltip
=
(
function
(
$
)
{
/**
* Check for Tether dependency
* Tether - http://github.hubspot.com/tether/
*/
if
(
!
window
.
Tether
)
{
throw
new
Error
(
"
Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)
"
);
}
/**
* ------------------------------------------------------------------------
* Constants
...
...
This diff is collapsed.
Click to expand it.
js/dist/tooltip.js.map
+317 bytes (+1%)
View file @
d600831a
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
Click to expand it.
js/src/tooltip.js
+
8
-
0
View file @
d600831a
...
...
@@ -12,6 +12,14 @@ import Util from './util'
const
Tooltip
=
((
$
)
=>
{
/**
* Check for Tether dependency
* Tether - http://github.hubspot.com/tether/
*/
if
(
!
window
.
Tether
)
{
throw
new
Error
(
'
Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)
'
)
}
/**
* ------------------------------------------------------------------------
...
...
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