Skip to content

Commit

Permalink
removed some prints
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Mar 9, 2014
1 parent 957e3f5 commit 169db38
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/jquery.fancytree.js
Original file line number Diff line number Diff line change
Expand Up @@ -2970,11 +2970,11 @@ $.extend(Fancytree.prototype,
// flag defaults to true
flag = (flag !== false);

node.debug("nodeSetExpanded(" + flag + ")");
// node.debug("nodeSetExpanded(" + flag + ")");

if((node.expanded && flag) || (!node.expanded && !flag)){
// Nothing to do
node.debug("nodeSetExpanded(" + flag + "): nothing to do");
// node.debug("nodeSetExpanded(" + flag + "): nothing to do");
return _getResolvedPromise(node);
}else if(flag && !node.lazy && !node.hasChildren() ){
// Prevent expanding of empty nodes
Expand Down Expand Up @@ -3049,9 +3049,9 @@ $.extend(Fancytree.prototype,
} else {
duration = opts.fx.duration || 200;
easing = opts.fx.easing;
node.debug("nodeSetExpanded: animate start...");
// node.debug("nodeSetExpanded: animate start...");
$(node.ul).animate(opts.fx, duration, easing, function(){
node.debug("nodeSetExpanded: animate done");
// node.debug("nodeSetExpanded: animate done");
callback();
});
return;
Expand All @@ -3063,9 +3063,9 @@ $.extend(Fancytree.prototype,

// Load lazy nodes, if any. Then continue with _afterLoad()
if(flag && node.lazy && node.hasChildren() === undefined){
node.debug("nodeSetExpanded: load start...");
// node.debug("nodeSetExpanded: load start...");
node.load().done(function(){
node.debug("nodeSetExpanded: load done");
// node.debug("nodeSetExpanded: load done");
if(dfd.notifyWith){ // requires jQuery 1.6+
dfd.notifyWith(node, ["loaded"]);
}
Expand All @@ -3090,7 +3090,7 @@ $.extend(Fancytree.prototype,
}else{
_afterLoad(function () { dfd.resolveWith(node); });
}
node.debug("nodeSetExpanded: returns");
// node.debug("nodeSetExpanded: returns");
return dfd.promise();
},
/**
Expand Down

0 comments on commit 169db38

Please sign in to comment.