diff --git a/resources/mmv/mmv.lightboxinterface.js b/resources/mmv/mmv.lightboxinterface.js index 18b0474be..d866d1eee 100644 --- a/resources/mmv/mmv.lightboxinterface.js +++ b/resources/mmv/mmv.lightboxinterface.js @@ -276,6 +276,11 @@ this.clearEvents(); + this.buttons.disconnect( this, { + 'next': [ 'emit', 'next' ], + 'prev': [ 'emit', 'prev' ] + } ); + // We trigger this event on the document because unattach() can run // when the interface is unattached $( document ).trigger( $.Event( 'mmv-close' ) )