1
0
mirror of synced 2024-11-30 00:26:03 +03:00

cleaner way to detect older IE

This commit is contained in:
Igor Vaynberg 2013-06-03 11:19:00 -07:00
parent 5d8f03c90b
commit def8adca7c

View File

@ -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 // IE requires an iframe shim to cover controls like selects
if($.browser.msie) { if($.support.opacity) {
// a hack to detect older IE browsers - they do not support opacity
undermask=$("#select2-drop-undermask"); undermask=$("#select2-drop-undermask");
if (undermask.length==0) { if (undermask.length==0) {
undermask = $(document.createElement("iframe")); undermask = $(document.createElement("iframe"));