var CartView = View.extend({ el: "#cart", events: { "click .summary_step": "show_summary", "click .shipping_step": "show_shipping", "click .payment_step": "show_payment", }, initialize: function(){ this.summary = new CartSummary ({ parent: this }) this.payment = new CartPayment ({ parent: this }) this.shipping = new CartShipping ({ parent: this }) this.confirm = new CartConfirm ({ parent: this }) this.thanks = new CartThanks ({ parent: this }) this.$itemcount = this.$(".itemcount") }, show: function(){ document.body.className = "cart" this.show_summary() }, show_summary: function(){ this.summary.show() }, show_shipping: function(){ this.shipping.show() }, show_payment: function(){ this.payment.show() }, })