Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #225 from samaxes/master
Browse files Browse the repository at this point in the history
Prevent error when carousel is hidden by ngIf
  • Loading branch information
Julien Bouquillon committed Oct 15, 2014
2 parents 597613b + e7d04ff commit 528405e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/directives/rn-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
scope: true,
compile: function(tElement, tAttributes) {
// use the compile phase to customize the DOM
var firstChildAttributes = tElement[0].querySelector('li').attributes,
var firstChild = tElement[0].querySelector('li'),
firstChildAttributes = (firstChild) ? firstChild.attributes : [],
isRepeatBased = false,
isBuffered = false,
repeatItem,
Expand Down

0 comments on commit 528405e

Please sign in to comment.