File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -284,19 +284,21 @@ the specific language governing permissions and limitations under the Apache Lic
284284 var classes , replacements = [ ] , adapted ;
285285
286286 classes = dest . attr ( "class" ) ;
287- if ( typeof classes === "string" ) {
287+ if ( classes ) {
288+ classes = '' + classes ; // for IE which returns object
288289 $ ( classes . split ( " " ) ) . each2 ( function ( ) {
289290 if ( this . indexOf ( "select2-" ) === 0 ) {
290291 replacements . push ( this ) ;
291292 }
292293 } ) ;
293294 }
294295 classes = src . attr ( "class" ) ;
295- if ( typeof classes === "string" ) {
296+ if ( classes ) {
297+ classes = '' + classes ; // for IE which returns object
296298 $ ( classes . split ( " " ) ) . each2 ( function ( ) {
297299 if ( this . indexOf ( "select2-" ) !== 0 ) {
298300 adapted = adapter ( this ) ;
299- if ( typeof adapted === "string" && adapted . length > 0 ) {
301+ if ( adapted ) {
300302 replacements . push ( this ) ;
301303 }
302304 }
You can’t perform that action at this time.
0 commit comments