mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
6d0adb27e8
commit
2775253b51
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user