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/ProductView.js | |
| parent | 5d68db92b37545fb03332a46b01d0f1aad8ce64b (diff) | |
split gallery into own view
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 94d43508..e87fa398 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -13,17 +13,14 @@ var ProductView = View.extend({ el: "#product", events: { - "click .left": "prev", - "click .right": "next", - "touchstart .gallery": "touchstart", - "touchmove .gallery": "touchmove", - "touchend .gallery": "touchend", - "click .size": "select_size", - "click .color": "select_color", - "click .share": "share", + "click .size": "select_size", + "click .color": "select_color", + "click .share": "share", }, initialize: function(){ + this.gallery = new GalleryView () + this.$num = this.$(".num") this.$title = this.$(".title") this.$type = this.$(".type") @@ -36,6 +33,8 @@ var ProductView = View.extend({ show: function(){ document.body.className = "product" }, + hide: function(){ + }, item: null, size: null, @@ -103,17 +102,6 @@ var ProductView = View.extend({ share: function(){ }, - prev: function(){ - }, - next: function(){ - }, - touchstart: function(e){ - }, - touchmove: function(e){ - }, - end: function(e){ - }, - }) |
