@@ -1218,7 +1218,7 @@ the specific language governing permissions and limitations under the Apache Lic
12181218 scroll = "scroll." + cid ,
12191219 resize = "resize." + cid ,
12201220 orient = "orientationchange." + cid ,
1221- mask , undermask = undefined , maskCss ;
1221+ mask , maskCss ;
12221222
12231223 this . container . addClass ( "select2-dropdown-open" ) . addClass ( "select2-container-active" ) ;
12241224
@@ -1249,41 +1249,18 @@ the specific language governing permissions and limitations under the Apache Lic
12491249 } ) ;
12501250 }
12511251
1252- // IE requires an iframe shim to cover controls like selects
1253- if ( $ . support . opacity === false ) {
1254- // a hack to detect older IE browsers - they do not support opacity
1255- undermask = $ ( "#select2-drop-undermask" ) ;
1256- if ( undermask . length == 0 ) {
1257- undermask = $ ( document . createElement ( "iframe" ) ) ;
1258- undermask . attr ( "src" , "about:blank" ) ;
1259- undermask . attr ( "id" , "select2-drop-undermask" ) . attr ( "class" , "select2-drop-undermask" ) ;
1260- undermask . attr ( "allowTransparency" , "true" ) ;
1261- undermask . attr ( "frameborder" , "0" ) ;
1262- undermask . hide ( ) ;
1263- undermask . appendTo ( this . body ( ) ) ;
1264- }
1265- }
1266-
1267-
12681252 // ensure the mask is always right before the dropdown
12691253 if ( this . dropdown . prev ( ) [ 0 ] !== mask [ 0 ] ) {
12701254 this . dropdown . before ( mask ) ;
12711255 }
12721256
1273- // ensure the undermask is always right before the mask
1274- if ( undermask && mask . prev ( ) [ 0 ] !== undermask [ 0 ] ) {
1275- mask . before ( undermask ) ;
1276- }
1277-
12781257 // move the global id to the correct dropdown
12791258 $ ( "#select2-drop" ) . removeAttr ( "id" ) ;
12801259 this . dropdown . attr ( "id" , "select2-drop" ) ;
12811260
12821261 // show the elements
12831262 maskCss = _makeMaskCss ( ) ;
12841263
1285- if ( undermask ) { undermask . css ( maskCss ) . show ( ) ; }
1286-
12871264 mask . css ( maskCss ) . show ( ) ;
12881265
12891266 this . dropdown . show ( ) ;
@@ -1297,7 +1274,6 @@ the specific language governing permissions and limitations under the Apache Lic
12971274 this . container . parents ( ) . add ( window ) . each ( function ( ) {
12981275 $ ( this ) . on ( resize + " " + scroll + " " + orient , function ( e ) {
12991276 var maskCss = _makeMaskCss ( ) ;
1300- $ ( "#select2-drop-undermask" ) . css ( maskCss ) ;
13011277 $ ( "#select2-drop-mask" ) . css ( maskCss ) ;
13021278 that . positionDropdown ( ) ;
13031279 } ) ;
@@ -1325,7 +1301,6 @@ the specific language governing permissions and limitations under the Apache Lic
13251301
13261302 this . clearDropdownAlignmentPreference ( ) ;
13271303
1328- $ ( "#select2-drop-undermask" ) . hide ( ) ;
13291304 $ ( "#select2-drop-mask" ) . hide ( ) ;
13301305 this . dropdown . removeAttr ( "id" ) ; // only the active dropdown has the select2-drop id
13311306 this . dropdown . hide ( ) ;
0 commit comments