Skip to content

Commit 9ad3d85

Browse files
committed
clean up data when tearing down
1 parent 309077f commit 9ad3d85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jquery.mousewheel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
} else {
5656
this.onmousewheel = null;
5757
}
58+
// Clean up the data we added to the element
59+
$.removeData(this, 'mousewheel-line-height');
60+
$.removeData(this, 'mousewheel-page-height');
5861
},
5962

6063
getLineHeight: function(elem) {

0 commit comments

Comments
 (0)