mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(): else on same line
This commit is contained in:
@@ -85,8 +85,8 @@ function keyboardInit() {
|
||||
//deprecated
|
||||
window.addEventListener('native.showkeyboard', keyboardNativeShow);
|
||||
window.addEventListener('native.hidekeyboard', keyboardFocusOut);
|
||||
}
|
||||
else {
|
||||
|
||||
} else {
|
||||
document.body.addEventListener('focusout', keyboardFocusOut);
|
||||
}
|
||||
|
||||
@@ -97,8 +97,7 @@ function keyboardInit() {
|
||||
|
||||
if (window.navigator.msPointerEnabled) {
|
||||
document.removeEventListener("MSPointerDown", keyboardInit);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
document.removeEventListener('touchstart', keyboardInit);
|
||||
}
|
||||
}
|
||||
@@ -183,8 +182,7 @@ function keyboardShow(element, elementTop, elementBottom, viewportHeight, keyboa
|
||||
// any touchmove events while the keyboard is open using e.preventDefault()
|
||||
if (window.navigator.msPointerEnabled) {
|
||||
document.addEventListener("MSPointerMove", keyboardPreventDefault, false);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
document.addEventListener('touchmove', keyboardPreventDefault, false);
|
||||
}
|
||||
|
||||
@@ -212,8 +210,7 @@ function keyboardHide() {
|
||||
// the keyboard is gone now, remove the touchmove that disables native scroll
|
||||
if (window.navigator.msPointerEnabled) {
|
||||
document.removeEventListener("MSPointerMove", keyboardPreventDefault);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
document.removeEventListener('touchmove', keyboardPreventDefault);
|
||||
}
|
||||
document.removeEventListener('keydown', keyboardOnKeyDown);
|
||||
@@ -254,8 +251,7 @@ function keyboardOrientationChange() {
|
||||
if (updatedViewportHeight !== keyboardViewportHeight){
|
||||
if (updatedViewportHeight < keyboardViewportHeight){
|
||||
ionic.keyboard.landscape = true;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
ionic.keyboard.landscape = false;
|
||||
}
|
||||
keyboardViewportHeight = updatedViewportHeight;
|
||||
@@ -264,8 +260,7 @@ function keyboardOrientationChange() {
|
||||
count++;
|
||||
|
||||
}, 50);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
keyboardViewportHeight = updatedViewportHeight;
|
||||
}
|
||||
}
|
||||
@@ -336,8 +331,7 @@ ionic.Platform.ready(function() {
|
||||
// if a touchstart event happens
|
||||
if (window.navigator.msPointerEnabled) {
|
||||
document.addEventListener("MSPointerDown", keyboardInit, false);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
document.addEventListener('touchstart', keyboardInit, false);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user