File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ angular.module('ui.mask', [])
437
437
if ( input . selectionStart !== undefined ) {
438
438
return input . selectionStart ;
439
439
} else if ( document . selection ) {
440
- if ( $ ( input ) . is ( ':focus' ) ) {
440
+ if ( iElement . is ( ':focus' ) ) {
441
441
// Curse you IE
442
442
input . focus ( ) ;
443
443
var selection = document . selection . createRange ( ) ;
@@ -454,20 +454,18 @@ angular.module('ui.mask', [])
454
454
return ; // Input's hidden
455
455
}
456
456
if ( input . setSelectionRange ) {
457
- if ( $ ( input ) . is ( ':focus' ) ) {
457
+ if ( iElement . is ( ':focus' ) ) {
458
458
input . focus ( ) ;
459
459
input . setSelectionRange ( pos , pos ) ;
460
460
}
461
461
}
462
462
else if ( input . createTextRange ) {
463
- if ( $ ( input ) . is ( ':focus' ) ) {
464
463
// Curse you IE
465
464
var range = input . createTextRange ( ) ;
466
465
range . collapse ( true ) ;
467
466
range . moveEnd ( 'character' , pos ) ;
468
467
range . moveStart ( 'character' , pos ) ;
469
468
range . select ( ) ;
470
- }
471
469
}
472
470
}
473
471
You can’t perform that action at this time.
0 commit comments