Skip to content

Commit 88dddd2

Browse files
committed
used instead of eval
1 parent 669c9ad commit 88dddd2

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

dist/angular-carousel.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Angular Carousel - Mobile friendly touch carousel for AngularJS
3-
* @version v0.3.10 - 2015-04-04
3+
* @version v0.3.10 - 2015-04-16
44
* @link http://revolunet.github.com/angular-carousel
55
* @author Julien Bouquillon <[email protected]>
66
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -584,11 +584,11 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach
584584

585585
goToSlide(destination);
586586
if(iAttributes.rnCarouselOnInfiniteScrollRight!==undefined && slidesMove === 0 && scope.carouselIndex !== 0) {
587-
eval("scope." + iAttributes.rnCarouselOnInfiniteScrollRight);
587+
$parse(iAttributes.rnCarouselOnInfiniteScrollRight)(scope)
588588
goToSlide(0);
589589
}
590590
if(iAttributes.rnCarouselOnInfiniteScrollLeft!==undefined && slidesMove === 0 && scope.carouselIndex === 0 && moveOffset === 0) {
591-
eval("scope." + iAttributes.rnCarouselOnInfiniteScrollLeft);
591+
$parse(iAttributes.rnCarouselOnInfiniteScrollLeft)(scope)
592592
goToSlide(currentSlides.length);
593593
}
594594

0 commit comments

Comments
 (0)