var PaymentView = FormView.extend({ el: "#payment", events: { }, initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") this.address = new AddressView ({ parent: this }) this.cc = new CreditCardView ({ parent: this }) this.scroller = new IScroll('#payment', app.iscroll_options) }, show: function(){ if (! auth.logged_in()) { return app.router.go("intro") } app.footer.show("SAVE", "CANCEL") document.body.className = "payment" }, save: function(){ }, })