diff --git a/script/jquery.scrollpath.js b/script/jquery.scrollpath.js index 9bda986..771f71f 100644 --- a/script/jquery.scrollpath.js +++ b/script/jquery.scrollpath.js @@ -52,7 +52,7 @@ /* Initializes the plugin */ init: function( options ) { if ( this.length > 1 || isInitialized ) $.error( "jQuery.scrollPath can only be initialized on *one* element *once*" ); - + $.extend( settings, options ); isInitialized = true; element = this; @@ -100,7 +100,7 @@ return this; } }; - + /* The Path object serves as a context to "draw" the scroll path on before initializing the plugin */ function Path( scrollS, rotateS ) { @@ -131,7 +131,7 @@ steps = Math.round( rotDistance / rotationSpeed ) * STEP_SIZE, rotStep = ( radians - rotation ) / steps, i = 1; - + if ( !HAS_TRANSFORM_SUPPORT ) { if ( settings.name || settings.callback ) { // In case there was a name or callback set to this path, we add an extra step with those @@ -143,7 +143,7 @@ } return this; } - + for( ; i <= steps; i++ ) { path.push({ x: xPos, y: yPos, @@ -233,7 +233,7 @@ if ( xPos !== startX || yPos !== startY ) { this.lineTo( startX, startY ); } - + for ( ; i <= steps; i++ ) { path.push({ x: centerX + radius * Math.cos( startAngle + radStep*i ), y: centerY + radius * Math.sin( startAngle + radStep*i ), @@ -333,7 +333,7 @@ e.preventDefault(); return false; }); - + scrollHandle = $( "