ux/Slideshow.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 07:08:24 +0000 (15:08 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 07:08:24 +0000 (15:08 +0800)
ux/Slideshow.js

index bb2de26..8fe3009 100644 (file)
@@ -113,7 +113,7 @@ Roo.apply(Roo.ux.Slideshow.prototype, {
                imageShow = this.iImageId+1;
                imageHide = this.iImageId;
                
-               if (imageShow == this.numOfImages) {
+               if (imageShow+1  > this.slides.length) {
                        this.swapImage(0,imageHide);
             
                        this.iImageId = 0;