var CartView = View.extend({ el: "#cart", events: { "click .summary": "show_summary", "click .shipping": "show_shipping", "click .payment": "show_payment", }, initialize: function(){ this.summary = new CartSummary () this.payment = new CartPayment () this.shipping = new CartShipping () this.confirm = new CartConfirm () this.thanks = new CartThanks () }, 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() }, })