var CartConfirm = FormView.extend({ el: "#cart_confirm", events: { }, initialize: function(opt){ this.parent = opt.parent this.scroller = new IScroll('#cart_confirm', app.iscroll_options) }, show: function(){ document.body.className = "cart" app.cart.el.className = "confirm" app.footer.show("PLACE ORDER", "CANCEL") window.location.hash = "#/cart/confirm" this.deferScrollToTop() app.curtain.show("loading") promise(sdk.cart.get_status).then( this.populate.bind(this) ) }, populate: function(){ app.curtain.hide("loading") }, save: function(){ }, cancel: function(){ }, })