#25: Disabling the previousButton & nextButton throw error (Open)

Jun 11 2008 * 06:59
Reported by:   Assigned to:  
Priority: Normal  Milestone:  

If I instantiate like this: bigCarousel = new UI.Carousel(“bigImage”, {previousButton: false, nextButton: false});

then if will have the following error:

this.previousButton has no properties if (this.previousButton.hasClassName(previousClassName) && position != 0) {

So I changed this inside the library:

updateButtons: function() {
     if(this.previousButton){this.updatePreviousButton()}
   if(this.nextButton){this.updateNextButton()}
   return this;
 },