Add unbind for 'document'.

The function call is needed cause there are mouse handlers
for the element.
This commit is contained in:
Hyunje Alex Jun 2013-09-09 10:12:35 +09:00
parent be5e338869
commit ebef76a2c6

View File

@ -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);