Add unbind for 'document'.
The function call is needed cause there are mouse handlers for the element.
This commit is contained in:
parent
be5e338869
commit
ebef76a2c6
@ -340,6 +340,7 @@
|
|||||||
var destroy = function () {
|
var destroy = function () {
|
||||||
$this.unbind('.perfect-scroll');
|
$this.unbind('.perfect-scroll');
|
||||||
$(window).unbind('.perfect-scroll');
|
$(window).unbind('.perfect-scroll');
|
||||||
|
$(document).unbind('.perfect-scroll');
|
||||||
$this.data('perfect-scrollbar', null);
|
$this.data('perfect-scrollbar', null);
|
||||||
$this.data('perfect-scrollbar-update', null);
|
$this.data('perfect-scrollbar-update', null);
|
||||||
$this.data('perfect-scrollbar-destroy', null);
|
$this.data('perfect-scrollbar-destroy', null);
|
||||||
|
Loading…
Reference in New Issue
Block a user