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

Commit

Permalink
used instead of eval
Browse files Browse the repository at this point in the history
  • Loading branch information
dipakyadav committed Apr 16, 2015
1 parent 669c9ad commit 88dddd2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions dist/angular-carousel.js
@@ -1,6 +1,6 @@
/**
* Angular Carousel - Mobile friendly touch carousel for AngularJS
* @version v0.3.10 - 2015-04-04
* @version v0.3.10 - 2015-04-16
* @link http://revolunet.github.com/angular-carousel
* @author Julien Bouquillon <julien@revolunet.com>
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down Expand Up @@ -584,11 +584,11 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach

goToSlide(destination);
if(iAttributes.rnCarouselOnInfiniteScrollRight!==undefined && slidesMove === 0 && scope.carouselIndex !== 0) {
eval("scope." + iAttributes.rnCarouselOnInfiniteScrollRight);
$parse(iAttributes.rnCarouselOnInfiniteScrollRight)(scope)
goToSlide(0);
}
if(iAttributes.rnCarouselOnInfiniteScrollLeft!==undefined && slidesMove === 0 && scope.carouselIndex === 0 && moveOffset === 0) {
eval("scope." + iAttributes.rnCarouselOnInfiniteScrollLeft);
$parse(iAttributes.rnCarouselOnInfiniteScrollLeft)(scope)
goToSlide(currentSlides.length);
}

Expand Down

0 comments on commit 88dddd2

Please sign in to comment.