clean up data when tearing down

This commit is contained in:
Brandon Aaron
2014-04-09 13:30:28 -04:00
parent 309077ffb6
commit 9ad3d85fdf

View File

@ -55,6 +55,9 @@
} else {
this.onmousewheel = null;
}
// Clean up the data we added to the element
$.removeData(this, 'mousewheel-line-height');
$.removeData(this, 'mousewheel-page-height');
},
getLineHeight: function(elem) {