mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix jshint error in treeList
This commit is contained in:
parent
1eb8f9ad97
commit
9886af3cec
@ -350,10 +350,12 @@
|
|||||||
delete that._items[item.id];
|
delete that._items[item.id];
|
||||||
if(item.depth === 0) {
|
if(item.depth === 0) {
|
||||||
for(var key in that._items) {
|
for(var key in that._items) {
|
||||||
var child = that._items[key];
|
if (that._items.hasOwnProperty(key)) {
|
||||||
if(child.parent && child.parent.id === item.id) {
|
var child = that._items[key];
|
||||||
delete that._items[key].treeList;
|
if(child.parent && child.parent.id === item.id) {
|
||||||
delete that._items[key];
|
delete that._items[key].treeList;
|
||||||
|
delete that._items[key];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
that._data = that._data.filter(function(data) { return data.id !== item.id})
|
that._data = that._data.filter(function(data) { return data.id !== item.id})
|
||||||
|
Loading…
Reference in New Issue
Block a user