@@ -173,10 +173,10 @@ define([
173
173
*/
174
174
clearEvents : function ( ) {
175
175
this . fotoramaItem . off (
176
- 'fotorama:show ' +
177
- 'fotorama:showend ' +
178
- 'fotorama:fullscreenenter ' +
179
- 'fotorama:fullscreenexit'
176
+ 'fotorama:show.' + this . PV +
177
+ ' fotorama:showend.' + this . PV +
178
+ ' fotorama:fullscreenenter.' + this . PV +
179
+ ' fotorama:fullscreenexit.' + this . PV
180
180
) ;
181
181
} ,
182
182
@@ -205,7 +205,7 @@ define([
205
205
if ( options . dataMergeStrategy === 'prepend' ) {
206
206
this . options . videoData = [ ] . concat (
207
207
this . options . optionsVideoData [ options . selectedOption ] ,
208
- this . options . videoData
208
+ this . defaultVideoData
209
209
) ;
210
210
} else {
211
211
this . options . videoData = this . options . optionsVideoData [ options . selectedOption ] ;
@@ -230,11 +230,11 @@ define([
230
230
* @private
231
231
*/
232
232
_listenForFullscreen : function ( ) {
233
- this . fotoramaItem . on ( 'fotorama:fullscreenenter' , $ . proxy ( function ( ) {
233
+ this . fotoramaItem . on ( 'fotorama:fullscreenenter.' + this . PV , $ . proxy ( function ( ) {
234
234
this . isFullscreen = true ;
235
235
} , this ) ) ;
236
236
237
- this . fotoramaItem . on ( 'fotorama:fullscreenexit' , $ . proxy ( function ( ) {
237
+ this . fotoramaItem . on ( 'fotorama:fullscreenexit.' + this . PV , $ . proxy ( function ( ) {
238
238
this . isFullscreen = false ;
239
239
this . _hideVideoArrows ( ) ;
240
240
} , this ) ) ;
@@ -466,7 +466,7 @@ define([
466
466
t ;
467
467
468
468
if ( ! fotorama . activeFrame . $navThumbFrame ) {
469
- this . fotoramaItem . on ( 'fotorama:showend' , $ . proxy ( function ( evt , fotoramaData ) {
469
+ this . fotoramaItem . on ( 'fotorama:showend.' + this . PV , $ . proxy ( function ( evt , fotoramaData ) {
470
470
$ ( fotoramaData . activeFrame . $stageFrame ) . removeAttr ( 'href' ) ;
471
471
} , this ) ) ;
472
472
@@ -484,7 +484,7 @@ define([
484
484
this . _checkForVideo ( e , fotorama , t + 1 ) ;
485
485
}
486
486
487
- this . fotoramaItem . on ( 'fotorama:showend' , $ . proxy ( function ( evt , fotoramaData ) {
487
+ this . fotoramaItem . on ( 'fotorama:showend.' + this . PV , $ . proxy ( function ( evt , fotoramaData ) {
488
488
$ ( fotoramaData . activeFrame . $stageFrame ) . removeAttr ( 'href' ) ;
489
489
} , this ) ) ;
490
490
} ,
@@ -526,15 +526,15 @@ define([
526
526
* @private
527
527
*/
528
528
_attachFotoramaEvents : function ( ) {
529
- this . fotoramaItem . on ( 'fotorama:showend' , $ . proxy ( function ( e , fotorama ) {
529
+ this . fotoramaItem . on ( 'fotorama:showend.' + this . PV , $ . proxy ( function ( e , fotorama ) {
530
530
this . _startPrepareForPlayer ( e , fotorama ) ;
531
531
} , this ) ) ;
532
532
533
- this . fotoramaItem . on ( 'fotorama:show' , $ . proxy ( function ( e , fotorama ) {
533
+ this . fotoramaItem . on ( 'fotorama:show.' + this . PV , $ . proxy ( function ( e , fotorama ) {
534
534
this . _unloadVideoPlayer ( fotorama . activeFrame . $stageFrame . parent ( ) , fotorama , true ) ;
535
535
} , this ) ) ;
536
536
537
- this . fotoramaItem . on ( 'fotorama:fullscreenexit' , $ . proxy ( function ( e , fotorama ) {
537
+ this . fotoramaItem . on ( 'fotorama:fullscreenexit.' + this . PV , $ . proxy ( function ( e , fotorama ) {
538
538
fotorama . activeFrame . $stageFrame . find ( '.' + this . PV ) . remove ( ) ;
539
539
this . _startPrepareForPlayer ( e , fotorama ) ;
540
540
} , this ) ) ;
0 commit comments