mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #4461 from node-red/fix-debug-filter
Fix debug filter
This commit is contained in:
		| @@ -509,6 +509,26 @@ | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             function containsDebug(sid, map) { | ||||
|                 var item = map[sid]; | ||||
|                 if (item) { | ||||
|                     if (item.debug === undefined) { | ||||
|                         var sfs = Object.keys(item.subflows); | ||||
|                         var contain = false; | ||||
|                         for (var i = 0; i < sfs.length; i++) { | ||||
|                             var sf = sfs[i]; | ||||
|                             if (containsDebug(sf, map)) { | ||||
|                                 contain = true; | ||||
|                                 break; | ||||
|                             } | ||||
|                         } | ||||
|                         item.debug = contain; | ||||
|                     } | ||||
|                     return item.debug; | ||||
|                 } | ||||
|                 return false; | ||||
|             } | ||||
|  | ||||
|             $("#red-ui-sidebar-debug-open").on("click", function(e) { | ||||
|                 e.preventDefault(); | ||||
|                 subWindow = window.open(document.location.toString().replace(/[?#].*$/,"")+"debug/view/view.html"+document.location.search,"nodeREDDebugView","menubar=no,location=no,toolbar=no,chrome,height=500,width=600"); | ||||
|   | ||||
| @@ -248,28 +248,6 @@ RED.debug = (function() { | ||||
|  | ||||
|     } | ||||
|  | ||||
|  | ||||
|     function containsDebug(sid, map) { | ||||
|         var item = map[sid]; | ||||
|         if (item) { | ||||
|             if (item.debug === undefined) { | ||||
|                 var sfs = Object.keys(item.subflows); | ||||
|                 var contain = false; | ||||
|                 for (var i = 0; i < sfs.length; i++) { | ||||
|                     var sf = sfs[i]; | ||||
|                     if (containsDebug(sf, map)) { | ||||
|                         contain = true; | ||||
|                         break; | ||||
|                     } | ||||
|                 } | ||||
|                 item.debug = contain; | ||||
|             } | ||||
|             return item.debug; | ||||
|         } | ||||
|         return false; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     function refreshDebugNodeList(data) { | ||||
|         debugNodeTreeList.treeList("data", data); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user