Permalink
Browse files

try catch

  • Loading branch information...
1 parent f507690 commit 8a5be1919403995509cbb554537a526e5aac745c @kristianmandrup committed Sep 7, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 vendor/assets/javascripts/gallery/responsive.js
@@ -136,9 +136,13 @@ $(function() {
},
_addImageWrapper= function() {
+ try {
// adds the structure for the large image and the navigation buttons (if total items > 1)
// 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 );

0 comments on commit 8a5be19

Please sign in to comment.