From def8adca7cc66aa4f47a694bdc5bd6f1ee15026e Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Mon, 3 Jun 2013 11:19:00 -0700 Subject: [PATCH] cleaner way to detect older IE --- select2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/select2.js b/select2.js index 8ead520e..67d31ed3 100644 --- a/select2.js +++ b/select2.js @@ -1233,8 +1233,9 @@ the specific language governing permissions and limitations under the Apache Lic }); } - // ie requires an iframe shim to cover controls like selects - if($.browser.msie) { + // IE requires an iframe shim to cover controls like selects + if($.support.opacity) { + // a hack to detect older IE browsers - they do not support opacity undermask=$("#select2-drop-undermask"); if (undermask.length==0) { undermask = $(document.createElement("iframe"));