From 60a02e343bbceb91a094f387799b816524bc6f96 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 28 Dec 2012 19:29:52 +0100 Subject: [PATCH 1/2] WKT: Added APIMethod keywords to documentation --- lib/OpenLayers/Format/WKT.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Format/WKT.js b/lib/OpenLayers/Format/WKT.js index 33cdd2464b..b2c13e15c7 100644 --- a/lib/OpenLayers/Format/WKT.js +++ b/lib/OpenLayers/Format/WKT.js @@ -41,7 +41,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, { }, /** - * Method: read + * APIMethod: read * Deserialize a WKT string and return a vector feature or an * array of vector features. Supports WKT for POINT, MULTIPOINT, * LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and @@ -84,7 +84,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, { }, /** - * Method: write + * APIMethod: write * Serialize a feature or array of features into a WKT string. * * Parameters: From 69d759635f3d57caa86f4763c5a86992cc2660f3 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 28 Dec 2012 19:30:10 +0100 Subject: [PATCH 2/2] WKT: Removed unused variables from write() method --- lib/OpenLayers/Format/WKT.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Format/WKT.js b/lib/OpenLayers/Format/WKT.js index b2c13e15c7..07beddb0d6 100644 --- a/lib/OpenLayers/Format/WKT.js +++ b/lib/OpenLayers/Format/WKT.js @@ -95,7 +95,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, { * {String} The WKT string representation of the input geometries */ write: function(features) { - var collection, geometry, type, data, isCollection; + var collection, geometry, isCollection; if (features.constructor == Array) { collection = features; isCollection = true;