arlo.carreon
7 Jul 2010, 11:55 AM
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();
Like I said next works like a charm but prev does not. Has anyone had this problem before?
*Sencha Touch v0.90
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();
Like I said next works like a charm but prev does not. Has anyone had this problem before?
*Sencha Touch v0.90