Skip to content

Commit

Permalink
fix(slidebox): default to not autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygovier committed Jul 11, 2014
1 parent 6b21804 commit 81a7342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/directive/slideBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function($timeout, $compile, $ionicSlideBoxDelegate) {
var _this = this;

var continuous = $scope.$eval($scope.doesContinue) === true;
var shouldAutoPlay = isDefined($attrs.autoPlay) ? !!$scope.autoPlay : true;
var shouldAutoPlay = isDefined($attrs.autoPlay) ? !!$scope.autoPlay : false;
var slideInterval = shouldAutoPlay ? $scope.$eval($scope.slideInterval) || 4000 : 0;

var slider = new ionic.views.Slider({
Expand Down

0 comments on commit 81a7342

Please sign in to comment.