From b22958ff2efcb47e8b838eb210d51840576f05b9 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 24 Mar 2007 23:07:30 +0000 Subject: [PATCH] Committing patch from #559 to add CLASS_NAME for all classes. (I never cleaned these up like I should have.) git-svn-id: http://svn.openlayers.org/trunk/openlayers@2876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format.js | 6 +++++- lib/OpenLayers/Format/GML.js | 6 +++++- lib/OpenLayers/Format/GeoRSS.js | 6 +++++- lib/OpenLayers/Format/KML.js | 1 + lib/OpenLayers/Format/WFS.js | 6 +++++- 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Format.js b/lib/OpenLayers/Format.js index ca91d97d10..bca2681f1b 100644 --- a/lib/OpenLayers/Format.js +++ b/lib/OpenLayers/Format.js @@ -29,5 +29,9 @@ OpenLayers.Format.prototype = { */ write: function(features) { alert("Write not implemented."); - } + }, + + /** @final @type String */ + CLASS_NAME: "OpenLayers.Format" + }; diff --git a/lib/OpenLayers/Format/GML.js b/lib/OpenLayers/Format/GML.js index a8db344195..488b94d8aa 100644 --- a/lib/OpenLayers/Format/GML.js +++ b/lib/OpenLayers/Format/GML.js @@ -429,5 +429,9 @@ OpenLayers.Format.GML.prototype = coordinatesNode.appendChild(txtNode); return coordinatesNode; - } + }, + + /** @final @type String */ + CLASS_NAME: "OpenLayers.Format.GML" + }); diff --git a/lib/OpenLayers/Format/GeoRSS.js b/lib/OpenLayers/Format/GeoRSS.js index 728ec8dd49..93c6226740 100644 --- a/lib/OpenLayers/Format/GeoRSS.js +++ b/lib/OpenLayers/Format/GeoRSS.js @@ -103,5 +103,9 @@ OpenLayers.Format.GeoRSS.prototype = path += geometry.lat + " " + geometry.lon + " "; } return document.createTextNode(path); - } + }, + + /** @final @type String */ + CLASS_NAME: "OpenLayers.Format.GeoRSS" + }); diff --git a/lib/OpenLayers/Format/KML.js b/lib/OpenLayers/Format/KML.js index 03f1b839a1..681d0ceaa9 100644 --- a/lib/OpenLayers/Format/KML.js +++ b/lib/OpenLayers/Format/KML.js @@ -164,6 +164,7 @@ OpenLayers.Format.KML.prototype = return p; }, + /** @final @type String */ CLASS_NAME: "OpenLayers.Format.KML" }); diff --git a/lib/OpenLayers/Format/WFS.js b/lib/OpenLayers/Format/WFS.js index 361e082a54..07fe168f44 100644 --- a/lib/OpenLayers/Format/WFS.js +++ b/lib/OpenLayers/Format/WFS.js @@ -152,5 +152,9 @@ OpenLayers.Format.WFS.prototype = destroy: function() { this.layer = null; - } + }, + + /** @final @type String */ + CLASS_NAME: "OpenLayers.Format.WFS" + });