$grid.find( 'div.bb-bookblock' ).each( function( i )
{
var $bookBlock = $(this),
$nav = $bookBlock.next(),
$navNext = $nav.find('.bb-nav-next'),
$navPrev = $nav.find('.bb-nav-prev'),
$navFirst = $nav.find('.bb-nav-first'),
$navLast = $nav.find('.bb-nav-last'),
$playStop = $nav.find('.bb-nav-play-stop'),
isPlaying = false,
autoplayTimer = null,
bb = $bookBlock.bookblock(
{
speed : 600,
shadows : false
});
});
will all the variables inside the .each function have scope only inside the loop? For example autoPlayTimer will be the result of setInterval. I want to make sure I am not overwriting variables. It seems it is working ok, but I want to make sure I understand $().each