diff options
Diffstat (limited to 'StoneIsland/www/js/lib/products/GalleryView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/products/GalleryView.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/products/GalleryView.js b/StoneIsland/www/js/lib/products/GalleryView.js index a139c454..ea4637eb 100644 --- a/StoneIsland/www/js/lib/products/GalleryView.js +++ b/StoneIsland/www/js/lib/products/GalleryView.js @@ -15,6 +15,11 @@ var GalleryView = View.extend({ this.$(".template").remove() }, + reset: function(){ + this.gallery && this.gallery.destroy() + this.$el.empty() + }, + populate: function(code, image_ids){ var valid_styles = {} image_ids.forEach(function(id){ |
