X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/ac50cae92710f684c801ad933b924de2bec2b460..HEAD:/src/editor/plugins/core/edumed/choice/list.js diff --git a/src/editor/plugins/core/edumed/choice/list.js b/src/editor/plugins/core/edumed/choice/list.js index 9174710..04891e4 100644 --- a/src/editor/plugins/core/edumed/choice/list.js +++ b/src/editor/plugins/core/edumed/choice/list.js @@ -15,7 +15,6 @@ var ListView = function(element, listNode, params) { this.params = params; this.dom = $(_.template(viewTemplate)()); this.list = this.dom.find('ul'); - this.addButton = this.dom.find('button.add'); this.itemViews = []; this.listNode.contents() @@ -75,8 +74,8 @@ var ItemView = function(node, exerciseView) { this.container = exerciseView.element.createContainer(node.contents(), { resetBackground: true, - manages: function(node, originaParent) { - return this.node.sameNode(node.parent() || originaParent); + manages: function(node, originalParent) { + return this.node.sameNode(node.parent() || originalParent); }.bind(this), dom: this.dom.find('.content') });