Commit 312a45f4 by dragonfi

jshint mentoring.js

parent 05a3e9b2
......@@ -18,10 +18,11 @@ function MentoringBlock(runtime, element) {
feedback_box = ".mentoring .feedback";
if (target.is(feedback_box)) {
return;
};
}
if (target.parents(feedback_box).length>0) {
return;
};
}
$(feedback_box).each(function(i, el) {
el = $(el);
......@@ -85,7 +86,7 @@ function MentoringBlock(runtime, element) {
/* Init and display a child. */
function displayChild(index, options) {
var options = options || {};
options = options || {};
options.mode = data.mode;
if (index >= children.length)
return children.length;
......@@ -126,7 +127,7 @@ function MentoringBlock(runtime, element) {
getChildByName: getChildByName,
step: step,
publish_event: publish_event
}
};
if (data.mode === 'standard') {
MentoringStandardView(runtime, element, mentoring);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment