Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Commit

Permalink
Moved using the mutation observer inside the safe guard
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed Feb 1, 2018
1 parent cdd4c3a commit 17c8295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/swiper.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export class SwiperComponent implements OnInit, OnDestroy {
this.mo = new MutationObserver((mutations) => {
this.updateClasses();
});
}

this.mo.observe(this.swiperSlides.nativeElement, { childList: true });
this.mo.observe(this.swiperSlides.nativeElement, { childList: true });
}
});
}

Expand Down

0 comments on commit 17c8295

Please sign in to comment.