7 Jul 2010 11:55 AM #1
Carousel.prev() not working?
I am using the next() and prev() methods for my carousel in Sencha Touch. The next() method works perfectly but prev() throws an error: Uncaught TypeError: Object [object Object] has no method 'prev'
Here is my code sample, property "position" was added on by me:
// Determine whether to move forward or backward on the list if( propertyCarousel.getActiveItem().position < data.position ) propertyCarousel.next(); else propertyCarousel.prev();
*Sencha Touch v0.90
7 Jul 2010 7:22 PM #2
I ran into this same problem. Turns out the api docs are incorrect. I looked in the source code and the method is actually previous().
7 Jul 2010 7:25 PM #3
- Join Date
- Apr 2007
- Sydney, Australia
- Vote Rating
I think this has been changed in 0.91, if I look at the source for Carousel the method is "prev".Evan Trimboli
Twitter - @evantrimboli
Don't be afraid of the source code!
8 Jul 2010 5:52 AM #4
Code in the Sencha Touch API say prev(). I just tried out previous() and it works perfectly. Thanks for the input!
By insnet in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 4 Jan 2013, 1:39 PM
By Rammynampati in forum Ext 3.x: Help & DiscussionReplies: 16Last Post: 23 Jan 2011, 4:02 AM
By Mphasize in forum Sencha Touch 1.x: BugsReplies: 6Last Post: 1 Jul 2010, 11:41 AM
By rdougan in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 11 Jun 2010, 6:04 PM
By fjanon in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 29 Jul 2007, 9:42 AM