Skip to content

Commit 17b6d36

Browse files
committed
offsetParent was not added until 1.2.6 and should probably continue support for 1.2.2 since this is going to be a bug fix release
1 parent 5aaaf69 commit 17b6d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.mousewheel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959

6060
getLineHeight: function(elem) {
61-
return parseInt($(elem).offsetParent().css('fontSize'), 10);
61+
return parseInt($(elem)['offsetParent' in jQuery.fn ? 'offsetParent' : 'parent']().css('fontSize'), 10);
6262
},
6363

6464
getPageHeight: function(elem) {

0 commit comments

Comments
 (0)