File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 568568
569569 var startingSlide = that . find ( SLIDE_ACTIVE_SEL ) ;
570570
571- //if the slide won# t be an starting point, the default will be the first one
571+ //if the slide won' t be an starting point, the default will be the first one
572572 if ( ! startingSlide . length ) {
573573 slides . eq ( 0 ) . addClass ( ACTIVE ) ;
574574 }
13421342 */
13431343 function lazyLoad ( destiny ) {
13441344 //Lazy loading images, videos and audios
1345+ var slide = destiny . find ( SLIDE_ACTIVE_SEL ) ;
1346+ if ( slide . length ) {
1347+ destiny = $ ( slide ) ;
1348+ }
13451349 destiny . find ( 'img[data-src], video[data-src], audio[data-src]' ) . each ( function ( ) {
13461350 $ ( this ) . attr ( 'src' , $ ( this ) . data ( 'src' ) ) ;
13471351 $ ( this ) . removeAttr ( 'data-src' ) ;
16341638 }
16351639
16361640 destiny . addClass ( ACTIVE ) . siblings ( ) . removeClass ( ACTIVE ) ;
1641+ lazyLoad ( destiny ) ;
16371642
16381643 if ( ! options . loopHorizontal && options . controlArrows ) {
16391644 //hidding it for the fist slide, showing for the rest
You can’t perform that action at this time.
0 commit comments