Skip to content

Commit

Permalink
try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed Sep 7, 2012
1 parent f507690 commit 8a5be19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vendor/assets/javascripts/gallery/responsive.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -136,9 +136,13 @@ $(function() {
}, },
_addImageWrapper= function() { _addImageWrapper= function() {


try {
// adds the structure for the large image and the navigation buttons (if total items > 1) // adds the structure for the large image and the navigation buttons (if total items > 1)
// also initializes the navigation events // also initializes the navigation events
$('#img-wrapper-tmpl').tmpl( {itemsCount : itemsCount} ).prependTo( $rgGallery ); $('#img-wrapper-tmpl').tmpl( {itemsCount : itemsCount} ).prependTo( $rgGallery );
} catch(e) {
return;
}


// $('#img-wrapper-tmpl').tmpl( {itemsCount : itemsCount} ).appendTo( $rgGallery ); // $('#img-wrapper-tmpl').tmpl( {itemsCount : itemsCount} ).appendTo( $rgGallery );


Expand Down

0 comments on commit 8a5be19

Please sign in to comment.