Skip to content
Permalink
Browse files
Tooltip: Remove use of $.parseJSON()
Also fixes the module loading for the tooltip animations visual test.

Fixes #14903
Closes gh-1665
  • Loading branch information
scottgonzalez committed Jan 18, 2016
1 parent 6d0adb2 commit 2775253b5118f00f4cd669ce618a9da59b98e783
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/visual/tooltip/animations.html
@@ -12,11 +12,12 @@
}
</style>
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../demos/bootstrap.js">
<script src="../../../demos/bootstrap.js"
data-modules="effect effect-explode effect-bounce effect-blind effect-drop">
$( "pre" ).each(function( index, elem ) {
$( elem )
.attr( "title", "animated tooltips" )
.tooltip( $.parseJSON( $( elem ).text() ) );
.tooltip( JSON.parse( $( elem ).text() ) );
});
</script>
</head>

0 comments on commit 2775253

Please sign in to comment.