Skip to content

Commit

Permalink
feat(carousel item): changes init to didInsertElement to prevent glim…
Browse files Browse the repository at this point in the history
…mer/emberfire render issues (#12)
  • Loading branch information
maprules1000 authored and knownasilya committed Jan 17, 2017
1 parent 8faf227 commit 591ea4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addon/components/carousel-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export default Component.extend({
index: 0,
_carouselContainer: null,

init() {
this._super(...arguments);
didInsertElement() {
let carouselContainer = this.nearestWithProperty('isCarouselParentContainer');

set(this, '_carouselContainer', carouselContainer);
Expand Down

0 comments on commit 591ea4f

Please sign in to comment.