From 8e0b8bbf1f88f0afdb4ff66d3b8c29b455f4a7d7 Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 26 May 2006 23:59:18 +0000 Subject: [PATCH] add visibility functions to popup git-svn-id: http://svn.openlayers.org/trunk/openlayers@412 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Popup.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/lib/OpenLayers/Popup.js b/lib/OpenLayers/Popup.js index c6cec37d30..2081630d9d 100644 --- a/lib/OpenLayers/Popup.js +++ b/lib/OpenLayers/Popup.js @@ -122,6 +122,35 @@ OpenLayers.Popup.prototype = { } }, + /** + * @returns Boolean indicating whether or not the popup is visible + * @type Boolean + */ + visible: function() { + return Element.visible(this.div); + }, + + /** + * + */ + toggle: function() { + Element.toggle(this.div); + } + + /** + * + */ + show: function() { + Element.show(this.div); + }, + + /** + * + */ + hide: function() { + Element.hide(this.div); + }, + /** * @param {OpenLayers.Size} size */