diff --git a/src/demo/app/modal-demo.component.ts b/src/demo/app/modal-demo.component.ts index 969100e..1c82c06 100644 --- a/src/demo/app/modal-demo.component.ts +++ b/src/demo/app/modal-demo.component.ts @@ -44,7 +44,6 @@ export class ModalDemoComponent { } dismissed() { - console.log('huh'); this.output = '(dismissed)'; } diff --git a/src/ng2-bs3-modal/autofocus/autofocus.spec.ts b/src/ng2-bs3-modal/autofocus/autofocus.spec.ts index ed7834c..747586c 100644 --- a/src/ng2-bs3-modal/autofocus/autofocus.spec.ts +++ b/src/ng2-bs3-modal/autofocus/autofocus.spec.ts @@ -27,8 +27,6 @@ describe('AutofocusDirective', () => { const fixture = createRoot(TestComponent); fixture.componentInstance.open(); tick(); - console.log('$(\'[autofocus]\').length', $('[autofocus]').length); - console.log('document.activeElement', document.activeElement); expect( document.getElementById('text')).toBe(document.activeElement); })); @@ -39,8 +37,6 @@ describe('AutofocusDirective', () => { fixture.componentInstance.open(); tick(150); // backdrop transition tick(300); // modal transition - console.log('$(\'[autofocus]\').length', $('[autofocus]').length); - console.log('document.activeElement', document.activeElement); expect( document.getElementById('text')).toBe(document.activeElement); })); }); diff --git a/src/ng2-bs3-modal/modal/modal-service.ts b/src/ng2-bs3-modal/modal/modal-service.ts index a993cdf..a8eeb71 100644 --- a/src/ng2-bs3-modal/modal/modal-service.ts +++ b/src/ng2-bs3-modal/modal/modal-service.ts @@ -17,8 +17,6 @@ export class BsModalService { public onKeyboardClose: Observable; constructor() { - console.log('service ctor'); - this.onBackdropClose = Observable.fromEvent(jQuery(document), CLICK_EVENT_NAME) .filter((e: MouseEvent) => e.target === jQuery('.modal')[0]) .map(() => BsModalCloseSource.Backdrop) diff --git a/src/ng2-bs3-modal/modal/modal.ts b/src/ng2-bs3-modal/modal/modal.ts index 7cd937b..aed77c0 100644 --- a/src/ng2-bs3-modal/modal/modal.ts +++ b/src/ng2-bs3-modal/modal/modal.ts @@ -92,7 +92,6 @@ export class BsModalComponent implements OnDestroy, OnChanges { this.service.remove(this); return this.hide().do(() => { if (this.$modal) { - console.log('destroy'); this.$modal.data(DATA_KEY, null); this.$modal.remove(); this.$modal = null;