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

Commit

Permalink
chore(carousel): clean up code style
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleycho committed Nov 28, 2015
1 parent 1a822a1 commit d8c8767
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/carousel/docs/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ angular.module('ui.bootstrap.demo').controller('CarouselDemoCtrl', function ($sc
assignNewIndexesToSlides(indexes);
};

for (var i=0; i<4; i++) {
for (var i = 0; i < 4; i++) {
$scope.addSlide();
}

Expand All @@ -34,7 +34,7 @@ angular.module('ui.bootstrap.demo').controller('CarouselDemoCtrl', function ($sc
function generateIndexesArray() {
var indexes = [];
for (var i = 0; i < currIndex; ++i) {
indexes[i]=i;
indexes[i] = i;
}
return shuffle(indexes);
}
Expand All @@ -43,8 +43,8 @@ angular.module('ui.bootstrap.demo').controller('CarouselDemoCtrl', function ($sc
function shuffle(array) {
var tmp, current, top = array.length;

if(top) {
while(--top) {
if (top) {
while (--top) {
current = Math.floor(Math.random() * (top + 1));
tmp = array[current];
array[current] = array[top];
Expand Down

0 comments on commit d8c8767

Please sign in to comment.