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.el.className = "summary" }, show_shipping: function(){ this.el.className = "shipping" }, show_payment: function(){ this.el.className = "payment" }, })