deprecate OpenLayers.Element hide() / show(). r=crschmidt (closes #1099)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2011-02-28 08:05:56 +00:00
parent 31f1dd2610
commit 8beb04d2ca
2 changed files with 12 additions and 4 deletions

View File

@@ -431,7 +431,7 @@ OpenLayers.Popup = OpenLayers.Class({
* Makes the popup visible.
*/
show: function() {
OpenLayers.Element.show(this.div);
this.div.style.display = '';
if (this.panMapIfOutOfView) {
this.panIntoView();
@@ -443,7 +443,7 @@ OpenLayers.Popup = OpenLayers.Class({
* Makes the popup invisible.
*/
hide: function() {
OpenLayers.Element.hide(this.div);
this.div.style.display = 'none';
},
/**