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

Commit 85d626a

Browse files
author
Julien Bouquillon
committed
Merge pull request #80 from ADmad/master
chore: remove debug code and minor formatting change.
2 parents 7979a87 + fd1ef49 commit 85d626a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/directives/rn-carousel.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
if (isNaN(x)) {
168168
x = scope.carouselIndex * containerWidth;
169169
}
170-
170+
171171
offset = x;
172172
var move = -Math.round(offset);
173173
move += (scope.carouselBufferIndex * containerWidth);
@@ -274,6 +274,7 @@
274274
event.stopPropagation();
275275
return false;
276276
}
277+
277278
function swipeMove(coords, event) {
278279
//console.log('swipeMove', coords, event);
279280
var x, delta;
@@ -291,7 +292,7 @@
291292
event.stopPropagation();
292293
return false;
293294
}
294-
295+
295296
function swipeEnd(coords, event, forceAnimation) {
296297
//console.log('swipeEnd', 'scope.carouselIndex', scope.carouselIndex);
297298
$document.unbind('mouseup', documentMouseUpEvent);
@@ -345,9 +346,8 @@
345346
});
346347

347348
function onOrientationChange() {
348-
alert('onOrientationChange');
349-
updateContainerWidth();
350-
goToSlide();
349+
updateContainerWidth();
350+
goToSlide();
351351
}
352352

353353
// handle orientation change

0 commit comments

Comments
 (0)