Uncaught TypeError

12 views
Skip to first unread message

Uladislau Harbachou

unread,
Feb 6, 2015, 9:15:52 AM2/6/15
to isc...@googlegroups.com
Uncaught TypeError: Cannot read property 'length' of 

if ( y >= this.pages[x].length ) {                                                            //here goToPage object
y = this.pages[x].length - 1;
} else if ( y < 0 ) {
y = 0;
}

window.Carousels[0] = new IScroll('#carousel-wrapper-1', {
...
snap: 'li',
...
});

DOM:
#carousel-wrapper-1
     ul.wrapper
          li
          li
What i doing wrong?
Reply all
Reply to author
Forward
0 new messages