var ConfirmModal = new( ModalFormView.extend({ el: ".mediaDrawer.confirm", events: { "click .yes": "advance", "click .no": "hide", }, confirm: function(question, callback){ this.$(".question").empty().append(question) this.callback = callback this.show() }, advance: function(e){ e && e.preventDefault() this.hide() this.callback && this.callback() this.callback = null } }) )