chore(): remove debug and log statements (#18245)

fixes #18190
This commit is contained in:
Liam DeBeasi
2019-05-21 14:55:41 -04:00
committed by GitHub
parent 00a27dc37b
commit adaaf89737
8 changed files with 1 additions and 14 deletions

View File

@ -218,7 +218,6 @@ export class VirtualScroll implements ComponentInterface {
this.approxItemHeight, this.approxItemHeight,
cellIndex, offset, len cellIndex, offset, len
); );
console.debug('[virtual] cells recalculated', cells.length);
this.cells = inplaceUpdate(this.cells, cells, cellIndex); this.cells = inplaceUpdate(this.cells, cells, cellIndex);
this.lastItemLen = this.items.length; this.lastItemLen = this.items.length;
this.indexDirty = Math.max(offset - 1, 0); this.indexDirty = Math.max(offset - 1, 0);
@ -331,7 +330,6 @@ export class VirtualScroll implements ComponentInterface {
return; return;
} }
if (cell.height !== height || cell.visible !== true) { if (cell.height !== height || cell.visible !== true) {
console.debug(`[virtual] cell height or visibility changed ${cell.height}px -> ${height}px`);
cell.visible = true; cell.visible = true;
cell.height = height; cell.height = height;
this.indexDirty = Math.min(this.indexDirty, index); this.indexDirty = Math.min(this.indexDirty, index);
@ -372,7 +370,6 @@ export class VirtualScroll implements ComponentInterface {
this.approxItemHeight, this.approxItemHeight,
0, 0, this.lastItemLen 0, 0, this.lastItemLen
); );
console.debug('[virtual] cells recalculated', this.cells.length);
this.indexDirty = 0; this.indexDirty = 0;
} }
@ -388,7 +385,6 @@ export class VirtualScroll implements ComponentInterface {
this.heightIndex = resizeBuffer(this.heightIndex, this.cells.length); this.heightIndex = resizeBuffer(this.heightIndex, this.cells.length);
this.totalHeight = calcHeightIndex(this.heightIndex, this.cells, index); this.totalHeight = calcHeightIndex(this.heightIndex, this.cells, index);
console.debug('[virtual] height index recalculated', this.heightIndex.length - index);
this.indexDirty = Infinity; this.indexDirty = Infinity;
} }

View File

@ -528,7 +528,6 @@ export class Animator {
} }
function onTransitionFallback() { function onTransitionFallback() {
console.debug('Animation onTransitionFallback, CSS onTransitionEnd did not fire!');
// oh noz! the transition end event didn't fire in time! // oh noz! the transition end event didn't fire in time!
// instead the fallback timer when first // instead the fallback timer when first
// if all goes well this fallback should never fire // if all goes well this fallback should never fire

View File

@ -37,7 +37,6 @@ export function createPointerEvents(
function handleMouseDown(ev: any) { function handleMouseDown(ev: any) {
if (lastTouchEvent > Date.now()) { if (lastTouchEvent > Date.now()) {
console.debug('mousedown event dropped because of previous touch');
return; return;
} }
if (!pointerDown(ev)) { if (!pointerDown(ev)) {

View File

@ -9,7 +9,7 @@ export function relocateInput(
if (cloneMap.has(componentEl) === shouldRelocate) { if (cloneMap.has(componentEl) === shouldRelocate) {
return; return;
} }
console.debug(`native-input, hideCaret, shouldHideCaret: ${shouldRelocate}, input value: ${inputEl.value}`);
if (shouldRelocate) { if (shouldRelocate) {
addClone(componentEl, inputEl, inputRelativeY); addClone(componentEl, inputEl, inputRelativeY);
} else { } else {

View File

@ -4,7 +4,6 @@ export function enableHideCaretOnScroll(componentEl: HTMLElement, inputEl: HTMLI
if (!scrollEl || !inputEl) { if (!scrollEl || !inputEl) {
return () => { return; }; return () => { return; };
} }
console.debug('Input: enableHideCaretOnScroll');
const scrollHideCaret = (shouldHideCaret: boolean) => { const scrollHideCaret = (shouldHideCaret: boolean) => {
if (isFocused(inputEl)) { if (isFocused(inputEl)) {

View File

@ -2,8 +2,6 @@
const SKIP_SELECTOR = 'input, textarea, [no-blur]'; const SKIP_SELECTOR = 'input, textarea, [no-blur]';
export function enableInputBlurring(doc: Document) { export function enableInputBlurring(doc: Document) {
console.debug('Input: enableInputBlurring');
let focused = true; let focused = true;
let didScroll = false; let didScroll = false;

View File

@ -12,12 +12,10 @@ export function enableScrollAssist(
let coord: any; let coord: any;
const touchStart = (ev: Event) => { const touchStart = (ev: Event) => {
coord = pointerCoord(ev); coord = pointerCoord(ev);
console.debug(`input-base, pointerStart, type: ${ev.type}`);
}; };
const touchEnd = (ev: Event) => { const touchEnd = (ev: Event) => {
// input cover touchend/mouseup // input cover touchend/mouseup
console.debug(`input-base, pointerEnd, type: ${ev.type}`);
if (!coord) { if (!coord) {
return; return;
} }

View File

@ -1,8 +1,6 @@
const PADDING_TIMER_KEY = '$ionPaddingTimer'; const PADDING_TIMER_KEY = '$ionPaddingTimer';
export function enableScrollPadding(doc: Document, keyboardHeight: number) { export function enableScrollPadding(doc: Document, keyboardHeight: number) {
console.debug('Input: enableScrollPadding');
function onFocusin(ev: any) { function onFocusin(ev: any) {
setScrollPadding(ev.target, keyboardHeight); setScrollPadding(ev.target, keyboardHeight);
} }