Altered $.get() for "Try It" button to prevent execution of example script
parent
a667b0f389
commit
b072ae3772
|
@ -77,10 +77,10 @@
|
||||||
{
|
{
|
||||||
$txt = $( '<textarea>' );
|
$txt = $( '<textarea>' );
|
||||||
|
|
||||||
$.get( 'scripts/ex/class.js', function( data )
|
$.get( 'scripts/ex/class.js', {}, function( data )
|
||||||
{
|
{
|
||||||
$txt.text( data );
|
$txt.text( data );
|
||||||
} );
|
}, 'html' );
|
||||||
|
|
||||||
return $trybox = $( '<div>' )
|
return $trybox = $( '<div>' )
|
||||||
.attr( 'id', 'trybox' )
|
.attr( 'id', 'trybox' )
|
||||||
|
|
Loading…
Reference in New Issue