From 09ecd3cdb96da5d62f498ac0f7f1bf0bb6e54621 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Fri, 1 Jan 2016 18:16:51 -0500 Subject: [PATCH] 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. --- src/js/select2/dropdown/attachBody.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/js/select2/dropdown/attachBody.js b/src/js/select2/dropdown/attachBody.js index a1b62dc8..967252f7 100644 --- a/src/js/select2/dropdown/attachBody.js +++ b/src/js/select2/dropdown/attachBody.js @@ -128,7 +128,6 @@ define([ var newDirection = null; - var position = this.$container.position(); var offset = this.$container.offset(); offset.bottom = offset.top + this.$container.outerHeight(false);