@@ -175,10 +175,10 @@ define([
175
175
*/
176
176
clearEvents : function ( ) {
177
177
this . fotoramaItem . off (
178
- 'fotorama:show ' +
179
- 'fotorama:showend ' +
180
- 'fotorama:fullscreenenter ' +
181
- 'fotorama:fullscreenexit'
178
+ 'fotorama:show.' + this . PV +
179
+ ' fotorama:showend.' + this . PV +
180
+ ' fotorama:fullscreenenter.' + this . PV +
181
+ ' fotorama:fullscreenexit.' + this . PV
182
182
) ;
183
183
} ,
184
184
@@ -232,11 +232,11 @@ define([
232
232
* @private
233
233
*/
234
234
_listenForFullscreen : function ( ) {
235
- this . fotoramaItem . on ( 'fotorama:fullscreenenter' , $ . proxy ( function ( ) {
235
+ this . fotoramaItem . on ( 'fotorama:fullscreenenter.' + this . PV , $ . proxy ( function ( ) {
236
236
this . isFullscreen = true ;
237
237
} , this ) ) ;
238
238
239
- this . fotoramaItem . on ( 'fotorama:fullscreenexit' , $ . proxy ( function ( ) {
239
+ this . fotoramaItem . on ( 'fotorama:fullscreenexit.' + this . PV , $ . proxy ( function ( ) {
240
240
this . isFullscreen = false ;
241
241
this . _hideVideoArrows ( ) ;
242
242
} , this ) ) ;
@@ -468,7 +468,7 @@ define([
468
468
t ;
469
469
470
470
if ( ! fotorama . activeFrame . $navThumbFrame ) {
471
- this . fotoramaItem . on ( 'fotorama:showend' , $ . proxy ( function ( evt , fotoramaData ) {
471
+ this . fotoramaItem . on ( 'fotorama:showend.' + this . PV , $ . proxy ( function ( evt , fotoramaData ) {
472
472
$ ( fotoramaData . activeFrame . $stageFrame ) . removeAttr ( 'href' ) ;
473
473
} , this ) ) ;
474
474
@@ -486,7 +486,7 @@ define([
486
486
this . _checkForVideo ( e , fotorama , t + 1 ) ;
487
487
}
488
488
489
- this . fotoramaItem . on ( 'fotorama:showend' , $ . proxy ( function ( evt , fotoramaData ) {
489
+ this . fotoramaItem . on ( 'fotorama:showend.' + this . PV , $ . proxy ( function ( evt , fotoramaData ) {
490
490
$ ( fotoramaData . activeFrame . $stageFrame ) . removeAttr ( 'href' ) ;
491
491
} , this ) ) ;
492
492
} ,
@@ -528,15 +528,15 @@ define([
528
528
* @private
529
529
*/
530
530
_attachFotoramaEvents : function ( ) {
531
- this . fotoramaItem . on ( 'fotorama:showend' , $ . proxy ( function ( e , fotorama ) {
531
+ this . fotoramaItem . on ( 'fotorama:showend.' + this . PV , $ . proxy ( function ( e , fotorama ) {
532
532
this . _startPrepareForPlayer ( e , fotorama ) ;
533
533
} , this ) ) ;
534
534
535
- this . fotoramaItem . on ( 'fotorama:show' , $ . proxy ( function ( e , fotorama ) {
535
+ this . fotoramaItem . on ( 'fotorama:show.' + this . PV , $ . proxy ( function ( e , fotorama ) {
536
536
this . _unloadVideoPlayer ( fotorama . activeFrame . $stageFrame . parent ( ) , fotorama , true ) ;
537
537
} , this ) ) ;
538
538
539
- this . fotoramaItem . on ( 'fotorama:fullscreenexit' , $ . proxy ( function ( e , fotorama ) {
539
+ this . fotoramaItem . on ( 'fotorama:fullscreenexit.' + this . PV , $ . proxy ( function ( e , fotorama ) {
540
540
fotorama . activeFrame . $stageFrame . find ( '.' + this . PV ) . remove ( ) ;
541
541
this . _startPrepareForPlayer ( e , fotorama ) ;
542
542
} , this ) ) ;
0 commit comments