diff options
author | Scott González <scott.gonzalez@gmail.com> | 2016-01-18 12:36:25 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-01-18 13:10:56 -0500 |
commit | 2775253b5118f00f4cd669ce618a9da59b98e783 (patch) | |
tree | b274b296fa37f4c8b7e650a6851c6976eb944181 /tests/visual | |
parent | 6d0adb27e8031f69ec2bbbcd4532567cb3db05ff (diff) | |
download | jquery-ui-2775253b5118f00f4cd669ce618a9da59b98e783.tar.gz jquery-ui-2775253b5118f00f4cd669ce618a9da59b98e783.zip |
Tooltip: Remove use of `$.parseJSON()`
Also fixes the module loading for the tooltip animations visual test.
Fixes #14903
Closes gh-1665
Diffstat (limited to 'tests/visual')
-rw-r--r-- | tests/visual/tooltip/animations.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/visual/tooltip/animations.html b/tests/visual/tooltip/animations.html index 7427d7ebd..2feabeab1 100644 --- a/tests/visual/tooltip/animations.html +++ b/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> |