Tooltip: Remove use of $.parseJSON()

Also fixes the module loading for the tooltip animations visual test.

Fixes #14903
Closes gh-1665
This commit is contained in:
Scott González 2016-01-18 12:36:25 -05:00
parent 6d0adb27e8
commit 2775253b51

View File

@ -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>