Commit 312a45f4 by dragonfi

jshint mentoring.js

parent 05a3e9b2
...@@ -18,10 +18,11 @@ function MentoringBlock(runtime, element) { ...@@ -18,10 +18,11 @@ function MentoringBlock(runtime, element) {
feedback_box = ".mentoring .feedback"; feedback_box = ".mentoring .feedback";
if (target.is(feedback_box)) { if (target.is(feedback_box)) {
return; return;
}; }
if (target.parents(feedback_box).length>0) { if (target.parents(feedback_box).length>0) {
return; return;
}; }
$(feedback_box).each(function(i, el) { $(feedback_box).each(function(i, el) {
el = $(el); el = $(el);
...@@ -85,7 +86,7 @@ function MentoringBlock(runtime, element) { ...@@ -85,7 +86,7 @@ function MentoringBlock(runtime, element) {
/* Init and display a child. */ /* Init and display a child. */
function displayChild(index, options) { function displayChild(index, options) {
var options = options || {}; options = options || {};
options.mode = data.mode; options.mode = data.mode;
if (index >= children.length) if (index >= children.length)
return children.length; return children.length;
...@@ -126,7 +127,7 @@ function MentoringBlock(runtime, element) { ...@@ -126,7 +127,7 @@ function MentoringBlock(runtime, element) {
getChildByName: getChildByName, getChildByName: getChildByName,
step: step, step: step,
publish_event: publish_event publish_event: publish_event
} };
if (data.mode === 'standard') { if (data.mode === 'standard') {
MentoringStandardView(runtime, element, mentoring); 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