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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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