mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix linting
This commit is contained in:
		| @@ -29,7 +29,14 @@ RED.history = (function() { | ||||
|         } | ||||
|         return RED.nodes.junction(id); | ||||
|     } | ||||
|  | ||||
|     function ensureUnlocked(id, flowsToLock) { | ||||
|         const flow = id && (RED.nodes.workspace(id) || RED.nodes.subflow(id) || null); | ||||
|         const isLocked = flow ? flow.locked : false; | ||||
|         if (flow && isLocked) { | ||||
|             flow.locked = false; | ||||
|             flowsToLock.add(flow) | ||||
|         } | ||||
|     } | ||||
|     function undoEvent(ev) { | ||||
|         var i; | ||||
|         var len; | ||||
| @@ -78,21 +85,14 @@ RED.history = (function() { | ||||
|                     RED.nodes.dirty(false); | ||||
|  | ||||
|                     const flowsToLock = new Set() | ||||
|                     function ensureUnlocked(id) { | ||||
|                         const flow = id && (RED.nodes.workspace(id) || RED.nodes.subflow(id) || null); | ||||
|                         const isLocked = flow ? flow.locked : false; | ||||
|                         if (flow && isLocked) { | ||||
|                             flow.locked = false; | ||||
|                             flowsToLock.add(flow) | ||||
|                         } | ||||
|                     } | ||||
|                      | ||||
|                     imported.nodes.forEach(function(n) { | ||||
|                         if (ev.changed[n.id]) { | ||||
|                             ensureUnlocked(n.z) | ||||
|                             ensureUnlocked(n.z, flowsToLock) | ||||
|                             n.changed = true; | ||||
|                         } | ||||
|                         if (ev.moved[n.id]) { | ||||
|                             ensureUnlocked(n.z) | ||||
|                             ensureUnlocked(n.z, flowsToLock) | ||||
|                             n.moved = true; | ||||
|                         } | ||||
|                     }) | ||||
|   | ||||
| @@ -223,7 +223,7 @@ RED.notifications = (function() { | ||||
|                     } | ||||
|                     newTimeout = newOptions.hasOwnProperty('timeout')?newOptions.timeout:timeout | ||||
|                     if (!fixed || newOptions.fixed === false) { | ||||
|                         newTimeout === newTimeout || 5000 | ||||
|                         newTimeout = newTimeout || 5000 | ||||
|                     } | ||||
|                     if (newOptions.buttons) { | ||||
|                         var buttonSet = $('<div class="ui-dialog-buttonset"></div>').appendTo(nn) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user