Skip to content

Commit b1d2f3c

Browse files
committed
clean up the code
1 parent 7d70f6d commit b1d2f3c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

assets/touchTouch/touchTouch.jquery.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@
5151
}
5252
placeholders = placeholders.add($('<div class="placeholder">'));
5353
});
54-
//console.log(captions);
55-
/*if(captions.length > 0)
56-
{
57-
captionContainer.append(captionContent).appendTo(overlay);
58-
}*/
54+
5955
captionContainer.append(captionContent).appendTo(overlay);
6056
// Hide the gallery if the background is touched / clicked
6157
slider.append(placeholders).on('click',function(e){
@@ -283,8 +279,7 @@
283279

284280
// Show image in the slider
285281
function showImage(index,preload=false){
286-
//console.log(index);
287-
//hasCaption = typeof hasCaption !== 'undefined'? hasCaption:false;
282+
288283
// If the index is outside the bonds of the array
289284
if(index < 0 || index >= items.length){
290285
return false;
@@ -297,6 +292,7 @@
297292
{
298293
placeholders.eq(index).html(this);
299294

295+
//only show the caption if the image isn't preloaded
300296
if(!preload)
301297
{
302298
setTimeout(function(){
@@ -413,7 +409,7 @@
413409
//fade in the caption container
414410
captionContainer.css({'bottom':current_placeholder.height() - current_img.height() - current_img.position().top}).fadeIn('slow');
415411
}
416-
//console.log("show:",items.eq(idx));
412+
417413

418414

419415
}

0 commit comments

Comments
 (0)