From: Jan Szejko Date: Thu, 17 Aug 2017 14:54:02 +0000 (+0200) Subject: minor cleanup X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/3db378e91ce58920fd1d1cdb6cd6997c88089edb?ds=inline minor cleanup --- diff --git a/src/editor/plugins/core/edumed/choice/element.js b/src/editor/plugins/core/edumed/choice/element.js index 0514dae..e456841 100644 --- a/src/editor/plugins/core/edumed/choice/element.js +++ b/src/editor/plugins/core/edumed/choice/element.js @@ -9,7 +9,7 @@ var choiceSingle = require('./choiceSingle'), return [ {tag: 'div', klass: 'exercise.choice', prototype: choiceMulti}, {tag: 'div', klass: 'exercise.choice.single', prototype: choiceSingle}, - {tag: 'div', klass: 'exercise.choice.true-or-false', prototype: choiceTrueOrFalse}, + {tag: 'div', klass: 'exercise.choice.true-or-false', prototype: choiceTrueOrFalse} ]; }); diff --git a/src/editor/plugins/core/edumed/choice/list.js b/src/editor/plugins/core/edumed/choice/list.js index ed897c0..04891e4 100644 --- a/src/editor/plugins/core/edumed/choice/list.js +++ b/src/editor/plugins/core/edumed/choice/list.js @@ -74,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') }); diff --git a/src/editor/plugins/core/edumed/gaps/element.js b/src/editor/plugins/core/edumed/gaps/element.js index db8d0c5..1c3d8ea 100644 --- a/src/editor/plugins/core/edumed/gaps/element.js +++ b/src/editor/plugins/core/edumed/gaps/element.js @@ -8,8 +8,8 @@ var $ = require('libs/jquery'), elementBase = require('plugins/core/edumed/elementBase'), viewTemplate = require('libs/text!./view.html'); -var OrderExerciceElement = Object.create(elementBase); -_.extend(OrderExerciceElement, { +var GapsExerciseElement = Object.create(elementBase); +_.extend(GapsExerciseElement, { init: function() { elementBase.init.call(this); var view = $(_.template(viewTemplate)()); @@ -42,12 +42,6 @@ _.extend(OrderExerciceElement, { } }); -return {tag: 'div', klass: 'exercise.gap', prototype: OrderExerciceElement}; +return {tag: 'div', klass: 'exercise.gap', prototype: GapsExerciseElement}; }); - - - - - - diff --git a/src/editor/plugins/core/edumed/order/element.js b/src/editor/plugins/core/edumed/order/element.js index 4fb7507..cff6815 100644 --- a/src/editor/plugins/core/edumed/order/element.js +++ b/src/editor/plugins/core/edumed/order/element.js @@ -9,8 +9,8 @@ var _ = require('libs/underscore'); var elementBase = require('plugins/core/edumed/elementBase'), OrderExerciseView = require('./view'); -var OrderExerciceElement = Object.create(elementBase); -_.extend(OrderExerciceElement, { +var OrderExerciseElement = Object.create(elementBase); +_.extend(OrderExerciseElement, { init: function() { elementBase.init.call(this); @@ -129,6 +129,6 @@ _.extend(OrderExerciceElement, { } }); -return {tag: 'div', klass: 'exercise.order', prototype: OrderExerciceElement}; +return {tag: 'div', klass: 'exercise.order', prototype: OrderExerciseElement}; });