$stepDiv = $steps.filter( ':not(:last-child)' ).addClass( 'arrow' ).find( 'div' );
// Execute when complete page is fully loaded, including all frames, objects and images
- $( window ).load( function () {
+ $( window ).on( 'load', function () {
arrowWidth = parseInt( $el.outerHeight(), 10 );
$stepDiv.css( paddingSide, arrowWidth.toString() + 'px' );
} );
$.each( $steps, function ( i, step ) {
var $step = $( step );
if ( $step.is( selector ) ) {
- if ($previous) {
+ if ( $previous ) {
$previous.addClass( 'tail' );
}
$step.addClass( 'head' );