mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Don't allow a link node virtual wire to connect to normal port
This commit is contained in:
		| @@ -1939,7 +1939,7 @@ RED.view = (function() { | ||||
|                     } | ||||
|                     var link = {source: src, sourcePort:src_port, target: dst}; | ||||
|                     if (drag_line.virtualLink) { | ||||
|                         if (/^link (in|out)$/.test(src.type) && /^link (in|out)$/.test(dst.type)) { | ||||
|                         if (/^link (in|out)$/.test(src.type) && /^link (in|out)$/.test(dst.type) && src.type !== dst.type) { | ||||
|                             if (src.links.indexOf(dst.id) === -1 && dst.links.indexOf(src.id) === -1) { | ||||
|                                 var oldSrcLinks = $.extend(true,{},{v:src.links}).v | ||||
|                                 var oldDstLinks = $.extend(true,{},{v:dst.links}).v | ||||
|   | ||||
		Reference in New Issue
	
	Block a user