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}
];
});
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')
});
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)());
}
});
-return {tag: 'div', klass: 'exercise.gap', prototype: OrderExerciceElement};
+return {tag: 'div', klass: 'exercise.gap', prototype: GapsExerciseElement};
});
-
-
-
-
-
-
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);
}
});
-return {tag: 'div', klass: 'exercise.order', prototype: OrderExerciceElement};
+return {tag: 'div', klass: 'exercise.order', prototype: OrderExerciseElement};
});