this.dom = $(_.template(viewTemplate)());
this.modePills = this.dom.find('.modePills');
this.list = this.dom.find('ol');
this.dom = $(_.template(viewTemplate)());
this.modePills = this.dom.find('.modePills');
this.list = this.dom.find('ol');
_.extend(OrderExerciseView.prototype, Backbone.Events, {
addItem: function(item) {
var view = new ItemView(item, this);
_.extend(OrderExerciseView.prototype, Backbone.Events, {
addItem: function(item) {
var view = new ItemView(item, this);
view.on('receivedDrop', function(droppedItem) {
this.trigger(this.mode === 'initial' ? 'moveItem' : 'moveAnswer', droppedItem.item, item, 'after');
}.bind(this));
view.on('receivedDrop', function(droppedItem) {
this.trigger(this.mode === 'initial' ? 'moveItem' : 'moveAnswer', droppedItem.item, item, 'after');
}.bind(this));