Skip to content

Commit 09ecd3c

Browse files
committed
Remove dead code
This call to `$.fn.position` was causing an error in IE 8 because the `offsetParent` was null on the container for some reason. It's not needed, so this line of code has been removed. This should fix the test failures in IE 8.
1 parent e260860 commit 09ecd3c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/js/select2/dropdown/attachBody.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ define([
128128

129129
var newDirection = null;
130130

131-
var position = this.$container.position();
132131
var offset = this.$container.offset();
133132

134133
offset.bottom = offset.top + this.$container.outerHeight(false);

0 commit comments

Comments
 (0)