var CartPayment = View.extend({ el: "#cart_payment", events: { }, initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") this.address = new AddressView ({ parent: this }) this.cc = new CreditCardView ({ parent: this }) }, show: function(){ document.body.className = "cart" app.cart.el.className = "payment" app.footer.show("CONFIRM >", "CANCEL") }, save: function(){ }, cancel: function(){ }, })