X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=unfold%2Fjs%2Funfold-helper.js;h=c104ea3d8b979406ed88909e4f6210dca4ed39c2;hb=bdc9578767df176902d19e6d94e1aacf6ef921a9;hp=0d3a54d82c8091d471166f6412da6c61024b4587;hpb=ee1403fe15f21c08fcd97f770f64ef44122e2c23;p=myslice.git diff --git a/unfold/js/unfold-helper.js b/unfold/js/unfold-helper.js index 0d3a54d8..c104ea3d 100644 --- a/unfold/js/unfold-helper.js +++ b/unfold/js/unfold-helper.js @@ -4,11 +4,11 @@ var unfold = { if (maxdepth===undefined) maxdepth=5; var up=null, counter=0; while (true) { - console.log(counter+" "+msg+" id='"+dom.id+"' ["+dom.classList+"]"); + messages.debug(counter+" "+msg+" id='"+dom.id+"' ["+dom.classList+"]"); up=dom.parentNode; counter += 1; if ( (up == null) || (up === dom)) break; - if (counter >= maxdepth) { console.log(counter+" "+msg+" -> ..."); break; } + if (counter >= maxdepth) { messages.debug(counter+" "+msg+" -> ..."); break; } dom=up; } }, @@ -22,7 +22,6 @@ var unfold = { errorDisplay : function (error) { return '
Notice
  • ' + error + '
'; - return out; }, get_value: function (value) {