Skip to content

Commit 2775253

Browse files
committed
Tooltip: Remove use of $.parseJSON()
Also fixes the module loading for the tooltip animations visual test. Fixes #14903 Closes gh-1665
1 parent 6d0adb2 commit 2775253

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/visual/tooltip/animations.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
}
1313
</style>
1414
<script src="../../../external/requirejs/require.js"></script>
15-
<script src="../../../demos/bootstrap.js">
15+
<script src="../../../demos/bootstrap.js"
16+
data-modules="effect effect-explode effect-bounce effect-blind effect-drop">
1617
$( "pre" ).each(function( index, elem ) {
1718
$( elem )
1819
.attr( "title", "animated tooltips" )
19-
.tooltip( $.parseJSON( $( elem ).text() ) );
20+
.tooltip( JSON.parse( $( elem ).text() ) );
2021
});
2122
</script>
2223
</head>

0 commit comments

Comments
 (0)