File tree Expand file tree Collapse file tree 2 files changed +0
-61
lines changed Expand file tree Collapse file tree 2 files changed +0
-61
lines changed Original file line number Diff line number Diff line change 233
233
. off ( eventNamespace )
234
234
. removeData ( moduleNamespace )
235
235
;
236
- if ( module . is . ios ( ) ) {
237
- module . remove . ios ( ) ;
238
- }
239
236
$closeIcon . off ( elementNamespace ) ;
240
237
if ( $inputs ) {
241
238
$inputs . off ( elementNamespace ) ;
890
887
} ) ;
891
888
} ,
892
889
893
- // ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
894
- // (This is no longer necessary in latest iOS)
895
- ios : function ( ) {
896
- $html . addClass ( className . ios ) ;
897
- } ,
898
-
899
890
// container
900
891
pushed : function ( ) {
901
892
$context . addClass ( className . pushed ) ;
945
936
;
946
937
} ,
947
938
948
- // ios scroll on html not document
949
- ios : function ( ) {
950
- $html . removeClass ( className . ios ) ;
951
- } ,
952
-
953
939
// context
954
940
pushed : function ( ) {
955
941
$context . removeClass ( className . pushed ) ;
1071
1057
1072
1058
return module . cache . isIE ;
1073
1059
} ,
1074
- ios : function ( ) {
1075
- var
1076
- userAgent = navigator . userAgent ,
1077
- isIOS = userAgent . match ( regExp . ios ) ,
1078
- isMobileChrome = userAgent . match ( regExp . mobileChrome )
1079
- ;
1080
- if ( isIOS && ! isMobileChrome ) {
1081
- module . verbose ( 'Browser was found to be iOS' , userAgent ) ;
1082
-
1083
- return true ;
1084
- }
1085
-
1086
- return false ;
1087
- } ,
1088
1060
mobile : function ( ) {
1089
1061
var
1090
1062
userAgent = navigator . userAgent ,
1431
1403
blurring : 'blurring' ,
1432
1404
closing : 'closing' ,
1433
1405
dimmed : 'dimmed' ,
1434
- ios : 'ios' ,
1435
1406
locked : 'locked' ,
1436
1407
pushable : 'pushable' ,
1437
1408
pushed : 'pushed' ,
1464
1435
} ,
1465
1436
1466
1437
regExp : {
1467
- ios : / ( i P a d | i P h o n e | i P o d ) / g,
1468
- mobileChrome : / ( C r i O S ) / g,
1469
1438
mobile : / M o b i l e | i P ( h o n e | o d | a d ) | A n d r o i d | B l a c k B e r r y | I E M o b i l e | K i n d l e | N e t F r o n t | S i l k - A c c e l e r a t e d | ( h p w | w e b ) O S | F e n n e c | M i n i m o | O p e r a M ( o b i | i n i ) | B l a z e r | D o l f i n | D o l p h i n | S k y f i r e | Z u n e / g,
1470
1439
} ,
1471
1440
Original file line number Diff line number Diff line change 129
129
. off ( eventNamespace )
130
130
. removeData ( moduleNamespace )
131
131
;
132
- if ( module . is . ios ( ) ) {
133
- module . remove . ios ( ) ;
134
- }
135
132
// bound by uuid
136
133
$context . off ( elementNamespace ) ;
137
134
$window . off ( elementNamespace ) ;
595
592
$pusher . removeClass ( className . blurring ) ;
596
593
}
597
594
} ,
598
- // ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
599
- // (This is no longer necessary in latest iOS)
600
- ios : function ( ) {
601
- $html . addClass ( className . ios ) ;
602
- } ,
603
595
604
596
// container
605
597
pushed : function ( ) {
648
640
}
649
641
} ,
650
642
651
- // ios scroll on html not document
652
- ios : function ( ) {
653
- $html . removeClass ( className . ios ) ;
654
- } ,
655
-
656
643
// context
657
644
pushed : function ( ) {
658
645
$context . removeClass ( className . pushed ) ;
772
759
return module . cache . isIE ;
773
760
} ,
774
761
775
- ios : function ( ) {
776
- var
777
- userAgent = navigator . userAgent ,
778
- isIOS = userAgent . match ( regExp . ios ) ,
779
- isMobileChrome = userAgent . match ( regExp . mobileChrome )
780
- ;
781
- if ( isIOS && ! isMobileChrome ) {
782
- module . verbose ( 'Browser was found to be iOS' , userAgent ) ;
783
-
784
- return true ;
785
- }
786
-
787
- return false ;
788
- } ,
789
762
mobile : function ( ) {
790
763
var
791
764
userAgent = navigator . userAgent ,
1045
1018
blurring : 'blurring' ,
1046
1019
closing : 'closing' ,
1047
1020
dimmed : 'dimmed' ,
1048
- ios : 'ios' ,
1049
1021
locked : 'locked' ,
1050
1022
pushable : 'pushable' ,
1051
1023
pushed : 'pushed' ,
1065
1037
} ,
1066
1038
1067
1039
regExp : {
1068
- ios : / ( i P a d | i P h o n e | i P o d ) / g,
1069
- mobileChrome : / ( C r i O S ) / g,
1070
1040
mobile : / M o b i l e | i P ( h o n e | o d | a d ) | A n d r o i d | B l a c k B e r r y | I E M o b i l e | K i n d l e | N e t F r o n t | S i l k - A c c e l e r a t e d | ( h p w | w e b ) O S | F e n n e c | M i n i m o | O p e r a M ( o b i | i n i ) | B l a z e r | D o l f i n | D o l p h i n | S k y f i r e | Z u n e / g,
1071
1041
} ,
1072
1042
You can’t perform that action at this time.
0 commit comments