@@ -130,6 +130,7 @@ define([
130
130
*/
131
131
_initialize : function ( ) {
132
132
this . _loadVideoData ( ) ;
133
+
133
134
if ( this . _checkForVideoExist ( ) ) {
134
135
this . _checkFullscreen ( ) ;
135
136
this . _listenForFullscreen ( ) ;
@@ -140,6 +141,11 @@ define([
140
141
}
141
142
} ,
142
143
144
+ /**
145
+ *
146
+ * @param {Object } options
147
+ * @private
148
+ */
143
149
_setOptions : function ( options ) {
144
150
145
151
if ( options . videoData && options . videoData . length ) {
@@ -425,11 +431,9 @@ define([
425
431
}
426
432
fotorama . data . map ( $ . proxy ( this . _setItemType , this ) ) ;
427
433
428
-
429
434
thumbsParent = fotorama . activeFrame . $navThumbFrame . parent ( ) ;
430
435
thumbs = thumbsParent . find ( '.fotorama__nav__frame:visible' ) ;
431
436
432
-
433
437
for ( t = 0 ; t < thumbs . length ; t ++ ) {
434
438
this . _setThumbsIcon ( thumbs . eq ( t ) , t ) ;
435
439
this . _checkForVideo ( e , fotorama , t ) ;
@@ -440,6 +444,12 @@ define([
440
444
} , this ) ) ;
441
445
} ,
442
446
447
+ /**
448
+ *
449
+ * @param {Object } elem
450
+ * @param {Number } i
451
+ * @private
452
+ */
443
453
_setThumbsIcon : function ( elem , i ) {
444
454
var fotorama = this . fotoramaItem . data ( 'fotorama' ) ;
445
455
@@ -461,7 +471,7 @@ define([
461
471
* @param {Number } i
462
472
* @private
463
473
*/
464
- _setItemType : function ( item , i ) {
474
+ _setItemType : function ( item , i ) {
465
475
! item . type && ( item . type = this . options . videoData [ i ] . mediaType ) ;
466
476
} ,
467
477
@@ -518,6 +528,7 @@ define([
518
528
if ( $image . type === 'image' ) {
519
529
$image . $navThumbFrame && $image . $navThumbFrame . removeClass ( this . TI ) ;
520
530
this . _hideCloseVideo ( ) ;
531
+
521
532
return ;
522
533
} else if ( $image . $navThumbFrame && $image . type === 'video' ) {
523
534
! $image . $navThumbFrame . hasClass ( this . TI ) && $image . $navThumbFrame . addClass ( this . TI ) ;
@@ -600,15 +611,23 @@ define([
600
611
. on ( 'click tap' , $ . proxy ( this . _clickHandler , this ) ) ;
601
612
this . _handleBaseVideo ( fotorama , number ) ; //check for video is it base and handle it if it's base
602
613
} ,
614
+
603
615
/**
604
616
* Hides preview arrows above video player.
605
617
* @private
606
618
*/
607
619
_hideVideoArrows : function ( ) {
608
- $ ( '.' + this . FTAR ) . removeClass ( 'fotorama__arr--shown' ) ;
609
- $ ( '.' + this . FTAR ) . removeClass ( 'fotorama__arr--hidden' ) ;
620
+ var arrows = $ ( '.' + this . FTAR ) ;
621
+
622
+ arrows . removeClass ( 'fotorama__arr--shown' ) ;
623
+ arrows . removeClass ( 'fotorama__arr--hidden' ) ;
610
624
} ,
611
625
626
+ /**
627
+ *
628
+ * @param {Event } event
629
+ * @private
630
+ */
612
631
_clickHandler : function ( event ) {
613
632
if ( $ ( event . target ) . hasClass ( this . VU ) && $ ( event . target ) . find ( 'iframe' ) . length === 0 ) {
614
633
@@ -707,7 +726,7 @@ define([
707
726
if ( $ ( '.' + self . FTAR + '--prev' ) . is ( ':focus' ) || $ ( '.' + self . FTAR + '--next' ) . is ( ':focus' ) ) {
708
727
$ ( self . FTCF ) . focus ( ) ;
709
728
}
710
- }
729
+ }
711
730
} ) ;
712
731
}
713
732
} ) ;
0 commit comments