mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
iOS 7 detection and removed console log
This commit is contained in:
1
dist/js/ionic-angular.js
vendored
1
dist/js/ionic-angular.js
vendored
@@ -1937,7 +1937,6 @@ angular.module('ionic.ui.slideBox', [])
|
||||
};
|
||||
|
||||
$scope.$watch('currentSlide', function(v) {
|
||||
console.log('Current slide', v);
|
||||
selectPage(v);
|
||||
});
|
||||
}
|
||||
|
||||
6
dist/js/ionic.js
vendored
6
dist/js/ionic.js
vendored
@@ -1777,9 +1777,13 @@ window.ionic = {
|
||||
},
|
||||
isIOS7: function() {
|
||||
if(!window.device) {
|
||||
var parts = navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i);
|
||||
if(parts && parts.length > 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return parseFloat(window.device.version) >= 7.0;
|
||||
return window.device.platform == 'iOS' && parseFloat(window.device.version) >= 7.0;
|
||||
},
|
||||
isAndroid: function() {
|
||||
if(!window.device) {
|
||||
|
||||
@@ -120,7 +120,6 @@ angular.module('ionic.ui.slideBox', [])
|
||||
};
|
||||
|
||||
$scope.$watch('currentSlide', function(v) {
|
||||
console.log('Current slide', v);
|
||||
selectPage(v);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -47,9 +47,13 @@
|
||||
},
|
||||
isIOS7: function() {
|
||||
if(!window.device) {
|
||||
var parts = navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i);
|
||||
if(parts && parts.length > 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return parseFloat(window.device.version) >= 7.0;
|
||||
return window.device.platform == 'iOS' && parseFloat(window.device.version) >= 7.0;
|
||||
},
|
||||
isAndroid: function() {
|
||||
if(!window.device) {
|
||||
|
||||
Reference in New Issue
Block a user