var CartError = View.extend({ el: "#cart_error", events: { }, initialize: function(opt){ this.parent = opt.parent this.$error = this.$(".errrrrrrrrrrrrrrr") }, show: function(){ document.body.className = "cart" app.cart.el.className = "error" app.footer.show("< BACK TO CART") app.footer.hide() }, show_error: function(msg){ this.$error.html(msg) }, ok: function(){ app.router.go("cart/summary") }, })