Skip to content

Commit c88d5c1

Browse files
marcgurneyrueckstiess
authored andcommitted
style fixes
1 parent 5ca1be7 commit c88d5c1

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/tour/index.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ var TourView = View.extend({
4343
}
4444
},
4545
showFeature: function(ev) {
46-
var nCLick = ev.target.getAttribute('data-n'),
47-
that = this;
46+
var nCLick = ev.target.getAttribute('data-n');
47+
var that = this;
4848

4949
if (nCLick === null) {
5050
return false;
@@ -70,9 +70,8 @@ var TourView = View.extend({
7070
this.showHidePreviousNextButtons();
7171
},
7272
showPreviousFeature: function() {
73-
var currentFeature = this.tourCount,
74-
previousFeature = this.tourCount - 1,
75-
that = this;
73+
var previousFeature = this.tourCount - 1;
74+
var that = this;
7675

7776
// deselect old
7877
$('#features li.selected').removeClass('selected');
@@ -81,7 +80,7 @@ var TourView = View.extend({
8180
// select new
8281
$('#features li#f' + previousFeature).addClass('selected');
8382

84-
$('#animation-gif').one('webkitTransitionEnd', function(event) {
83+
$('#animation-gif').one('webkitTransitionEnd', function() {
8584
that.$animationGIF.src = that.tourImagesFolder + 'f' + previousFeature + '.gif';
8685
$('#animation-gif').css('opacity', '1');
8786
});
@@ -93,9 +92,8 @@ var TourView = View.extend({
9392
this.showHidePreviousNextButtons();
9493
},
9594
showNextFeature: function() {
96-
var currentFeature = this.tourCount,
97-
nextFeature = this.tourCount + 1,
98-
that = this;
95+
var nextFeature = this.tourCount + 1;
96+
var that = this;
9997

10098
// deselect old
10199
$('#features li.selected').removeClass('selected');
@@ -104,7 +102,7 @@ var TourView = View.extend({
104102
// select new
105103
$('#features li#f' + nextFeature).addClass('selected');
106104

107-
$('#animation-gif').one('webkitTransitionEnd', function(event) {
105+
$('#animation-gif').one('webkitTransitionEnd', function() {
108106
that.$animationGIF.src = that.tourImagesFolder + 'f' + nextFeature + '.gif';
109107
$('#animation-gif').css('opacity', '1');
110108
});

0 commit comments

Comments
 (0)