mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Revert all changes for RED.popover
				
					
				
			This commit is contained in:
		| @@ -54,7 +54,6 @@ | |||||||
|  *   properties: |  *   properties: | ||||||
|  *    - element : DOM element - the popover dom element |  *    - element : DOM element - the popover dom element | ||||||
|  *   functions: |  *   functions: | ||||||
|  *    - getContent() - get the popover content |  | ||||||
|  *    - setContent(content) - change the popover content. This only works if the |  *    - setContent(content) - change the popover content. This only works if the | ||||||
|  *                            popover is not currently displayed. It does not |  *                            popover is not currently displayed. It does not | ||||||
|  *                            change the content of a visible popover. |  *                            change the content of a visible popover. | ||||||
| @@ -160,7 +159,7 @@ RED.popover = (function() { | |||||||
|         var size = options.size||"default"; |         var size = options.size||"default"; | ||||||
|         var popupOffset = options.offset || 0; |         var popupOffset = options.offset || 0; | ||||||
|         if (!deltaSizes[size]) { |         if (!deltaSizes[size]) { | ||||||
|             throw new Error("Invalid RED.popover size value: " + size); |             throw new Error("Invalid RED.popover size value:",size); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         var timer = null; |         var timer = null; | ||||||
| @@ -441,6 +440,7 @@ RED.popover = (function() { | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         return res; |         return res; | ||||||
|  |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     return { |     return { | ||||||
| @@ -469,9 +469,6 @@ RED.popover = (function() { | |||||||
|                 interactive, |                 interactive, | ||||||
|                 delay: { show: 750, hide: 50 } |                 delay: { show: 750, hide: 50 } | ||||||
|             }); |             }); | ||||||
|             popover.getContent = function () { |  | ||||||
|                 return label(); |  | ||||||
|             } |  | ||||||
|             popover.setContent = function(newContent) { |             popover.setContent = function(newContent) { | ||||||
|                 content = newContent; |                 content = newContent; | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user