Revert all changes for RED.popover

This commit is contained in:
GogoVega 2024-06-10 18:02:28 +02:00
parent bd2c020e84
commit bffa923f05
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B

View File

@ -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;
} }