]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Remove use of `$.parseJSON()`
authorScott González <scott.gonzalez@gmail.com>
Mon, 18 Jan 2016 17:36:25 +0000 (12:36 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 18 Jan 2016 18:10:56 +0000 (13:10 -0500)
Also fixes the module loading for the tooltip animations visual test.

Fixes #14903
Closes gh-1665

tests/visual/tooltip/animations.html

index 7427d7ebd52f9a37a93a22539c2e620bc9c3213f..2feabeab1498fa86c499c5a674321fdfcd35faf3 100644 (file)
        }
        </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>