From 04e0bbd20259cef3b72a0f487b6f2be21e8a4070 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 17 Sep 2015 21:32:31 -0400 Subject: split gallery into own view --- StoneIsland/www/js/lib/products/GalleryView.js | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 StoneIsland/www/js/lib/products/GalleryView.js (limited to 'StoneIsland/www/js/lib/products/GalleryView.js') diff --git a/StoneIsland/www/js/lib/products/GalleryView.js b/StoneIsland/www/js/lib/products/GalleryView.js new file mode 100644 index 00000000..2eabe2a6 --- /dev/null +++ b/StoneIsland/www/js/lib/products/GalleryView.js @@ -0,0 +1,33 @@ +var GalleryView = View.extend({ + + el: "#gallery", + + events: { + "click .left": "prev", + "click .right": "next", + "touchstart .gallery": "touchstart", + "touchmove .gallery": "touchmove", + "touchend .gallery": "touchend", + }, + + initialize: function(){ + this.$prev = this.$(".prev") + this.$next = this.$(".next") + this.$slider = this.$(".slider") + }, + + populate: function(){ + }, + + prev: function(){ + }, + next: function(){ + }, + touchstart: function(e){ + }, + touchmove: function(e){ + }, + touchend: function(e){ + }, + +}) \ No newline at end of file -- cgit v1.2.3-70-g09d2