Permalink
Browse files

Fixed javascript error when autoPlay was set to false. Updated docume…

…ntation. Updated version to 1.2
  • Loading branch information...
1 parent 0407d4e commit 21561a14d93a38d9ea417f4a935018a7d2838e8c Douglas Neiner committed Sep 10, 2009
Showing with 29 additions and 5 deletions.
  1. +21 −2 README.textile
  2. +6 −1 example.html
  3. +2 −2 js/jquery.anythingslider.js
View
@@ -38,7 +38,7 @@ $('.anythingSlider').anythingSlider({
navigationFormatter: null // Advanced Use: details below
});</pre>
-To use the navigationFormatter function, you must have a function that accepts two paramaters, and returns a string of HTML text.
+To use the navigationFormatter function, you must have a function that accepts two parameters, and returns a string of HTML text.
* <code>index</code> = integer index (1 based);
* <code>panel</code> = jQuery wrapped LI item this tab references
@@ -49,4 +49,23 @@ Here is a sample formatter:
<pre>
navigationFormatter: function(index, panel){
return index + " Panel"; // This would have each tab with the text 'X Panel' where X = index
-}</pre>
+}</pre>
+
+h2. Changelog
+
+h3. Version 1.2
+
+* Bug Fix: When autoPlay was set to false, any interaction with the control would cause a javascript error.
+
+h3. Version 1.1
+
+* Changed default easing to "swing" so didn't depend on any other plugins
+* Removed extra junk (other plugins used for design, etc)
+* Added Pause on Hover option
+* Added options for passing in HTML for the start and stop button
+* Added option to use custom function for formatting the titles of the navigation
+* Added public interface for linking directly to certain slides
+
+h3. Version 1.0
+
+* First version
View
@@ -48,7 +48,7 @@
<div id="page-wrap">
- <a href="http://css-tricks.com/examples/AnythingSlider.zip" id="dl">Download v1.1</a>
+ <a href="http://css-tricks.com/examples/AnythingSlider.zip" id="dl">Download v1.2</a>
<h5>By <a href="http://css-tricks.com">Chris Coyier</a>, based upon lots of smart stuff by <a href="http://jqueryfordesigners.com/">Remy Sharp</a>,<br />
significantly improved by <a href="http://pixelgraphics.us/">Douglas Neiner</a></h5>
@@ -144,6 +144,11 @@
<h2>Changelog</h2>
+ <h3>Version 1.2</h3>
+ <ul>
+ <li>Bug Fix: When autoPlay was set to false, any interaction with the control would cause a javascript error.</li>
+ </ul>
+
<h3>Version 1.1</h3>
<ul>
<li>Changed default easing to "swing" so didn't depend on any other plugins</li>
@@ -1,5 +1,5 @@
/*
- anythingSlider v1.1
+ anythingSlider v1.2
By Chris Coyier: http://css-tricks.com
with major improvements by Doug Neiner: http://pixelgraphics.us/
@@ -227,7 +227,7 @@
base.playing = playing;
// Toggle playing and text
- base.$startStop.toggleClass("playing", playing).html( playing ? base.options.stopText : base.options.startText );
+ if(base.options.autoPlay) base.$startStop.toggleClass("playing", playing).html( playing ? base.options.stopText : base.options.startText );
if(playing){
base.clearTimer(); // Just in case this was triggered twice in a row

0 comments on commit 21561a1

Please sign in to comment.