Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change block-scoped functions to named function expressions #187

Merged
merged 1 commit into from
Sep 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ define([
tree.dndController.removeTreeNode(node);

// Deregister mapping from item id --> this node and its descendants
function remove(node){
var remove = function remove(node){
var id = model.getIdentity(node.item),
ary = tree._itemNodesMap[id];
if(ary.length == 1){
Expand All @@ -396,7 +396,7 @@ define([
}
}
array.forEach(node.getChildren(), remove);
}
};

remove(node);

Expand Down Expand Up @@ -1572,7 +1572,7 @@ define([
// tags:
// protected
var tmp = [];
for(var domNode = this.domNode;
for(var domNode = this.domNode;
domNode && domNode.tagName && domNode.tagName.toUpperCase() !== 'IFRAME';
domNode = domNode.parentNode) {
tmp.push({
Expand Down