diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-17 21:32:31 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-17 21:36:07 -0400 |
| commit | 04e0bbd20259cef3b72a0f487b6f2be21e8a4070 (patch) | |
| tree | 2cbee459d9e72181fbf4c22ed0b5968acdbe7513 /StoneIsland/www/js/lib/products/GalleryView.js | |
| parent | 5d68db92b37545fb03332a46b01d0f1aad8ce64b (diff) | |
split gallery into own view
Diffstat (limited to 'StoneIsland/www/js/lib/products/GalleryView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/products/GalleryView.js | 33 |
1 files changed, 33 insertions, 0 deletions
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 |
