Some problems in the documentation detected using "closure_verify"
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
* constructor.
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format>
|
||||
* - <OpenLayers.Format.XML>
|
||||
*/
|
||||
OpenLayers.Format.ArcXML = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* doc - {Element} or {String}
|
||||
*
|
||||
* Returns:
|
||||
* An Array of <OpenLayers.Feature.Vector>s
|
||||
* Array(<OpenLayers.Feature.Vector>)
|
||||
*/
|
||||
read: function(doc) {
|
||||
if (typeof doc == "string") {
|
||||
@@ -90,8 +90,7 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* Serialize or more feature nodes to Atom documents.
|
||||
*
|
||||
* Parameters:
|
||||
* features - a single {<OpenLayers.Feature.Vector>} or an
|
||||
* Array({<OpenLayers.Feature.Vector>}).
|
||||
* features - {<OpenLayers.Feature.Vector>} or Array({<OpenLayers.Feature.Vector>})
|
||||
*
|
||||
* Returns:
|
||||
* {String} an Atom entry document if passed one feature node, or a feed
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
/**
|
||||
* Class: OpenLayers.Format.Context
|
||||
* Base class for both Format.WMC and Format.OWSContext
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format.XML.VersionedOGC>
|
||||
*/
|
||||
OpenLayers.Format.Context = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
* - writes matchCase attribute from comparison filters of type EQUAL_TO,
|
||||
* NOT_EQUAL_TO and LIKE.
|
||||
*
|
||||
* Inherits from:
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format.GML.v3>
|
||||
* - <OpenLayers.Format.Filter.v1>
|
||||
*/
|
||||
OpenLayers.Format.Filter.v1_1_0 = OpenLayers.Class(
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* constructor. Supports the GML simple features profile.
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format>
|
||||
* - <OpenLayers.Format.XML>
|
||||
*/
|
||||
OpenLayers.Format.GML = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
|
||||
|
||||
@@ -311,7 +311,7 @@ OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* Builds a trkpt node given a point
|
||||
*
|
||||
* Parameters:
|
||||
* line - {OpenLayers.Geometry.Point}
|
||||
* point - {OpenLayers.Geometry.Point}
|
||||
*
|
||||
* Returns:
|
||||
* {DOMElement} A trkpt node
|
||||
|
||||
@@ -635,7 +635,7 @@ OpenLayers.Format.GeoJSON = OpenLayers.Class(OpenLayers.Format.JSON, {
|
||||
* Return an array of linestring arrays from a linestring.
|
||||
*
|
||||
* Parameters:
|
||||
* linestring - {<OpenLayers.Geometry.MultiLineString>}
|
||||
* multilinestring - {<OpenLayers.Geometry.MultiLineString>}
|
||||
*
|
||||
* Returns:
|
||||
* {Array} An array of linestring arrays representing
|
||||
|
||||
@@ -87,7 +87,7 @@ OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* Return a list of features from a OSM doc
|
||||
|
||||
* Parameters:
|
||||
* data - {Element}
|
||||
* doc - {Element}
|
||||
*
|
||||
* Returns:
|
||||
* An Array of <OpenLayers.Feature.Vector>s
|
||||
@@ -176,7 +176,7 @@ OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* Return the node items from a doc.
|
||||
*
|
||||
* Parameters:
|
||||
* node - {DOMElement} node to parse tags from
|
||||
* doc - {DOMElement} node to parse tags from
|
||||
*/
|
||||
getNodes: function(doc) {
|
||||
var node_list = doc.getElementsByTagName("node");
|
||||
@@ -198,7 +198,7 @@ OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* Return the way items from a doc.
|
||||
*
|
||||
* Parameters:
|
||||
* node - {DOMElement} node to parse tags from
|
||||
* doc - {DOMElement} node to parse tags from
|
||||
*/
|
||||
getWays: function(doc) {
|
||||
var way_list = doc.getElementsByTagName("way");
|
||||
@@ -229,7 +229,7 @@ OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* Return the tags list attached to a specific DOM element.
|
||||
*
|
||||
* Parameters:
|
||||
* node - {DOMElement} node to parse tags from
|
||||
* dom_node - {DOMElement} node to parse tags from
|
||||
* interesting_tags - {Boolean} whether the return from this function should
|
||||
* return a boolean indicating that it has 'interesting tags' --
|
||||
* tags like attribution and source are ignored. (To change the list
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
/**
|
||||
* Class: OpenLayers.Format.OWSCommon.v1
|
||||
* Common readers and writers for OWSCommon v1.X formats
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format.XML>
|
||||
*/
|
||||
OpenLayers.Format.OWSCommon.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
/**
|
||||
* Class: OpenLayers.Format.OWSCommon.v1_0_0
|
||||
* Parser for OWS Common version 1.0.0.
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format.OWSCommon.v1>
|
||||
*/
|
||||
OpenLayers.Format.OWSCommon.v1_0_0 = OpenLayers.Class(OpenLayers.Format.OWSCommon.v1, {
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
/**
|
||||
* Class: OpenLayers.Format.OWSCommon.v1_1_0
|
||||
* Parser for OWS Common version 1.1.0.
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format.OWSCommon.v1>
|
||||
*/
|
||||
OpenLayers.Format.OWSCommon.v1_1_0 = OpenLayers.Class(OpenLayers.Format.OWSCommon.v1, {
|
||||
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
* Web Map Context (WMC), since it is more generic and more types of layers
|
||||
* can be stored. Also, nesting of layers is supported since version 0.3.1.
|
||||
* For more information see: http://www.ogcnetwork.net/context
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format.Context>
|
||||
*/
|
||||
OpenLayers.Format.OWSContext = OpenLayers.Class(OpenLayers.Format.Context,{
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@ OpenLayers.Format.OWSContext.v0_3_1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
*
|
||||
* Parameters:
|
||||
* layerArray - {Array({Object})} Array of layerContext objects
|
||||
* layerContext - {Object} layerContext object
|
||||
* layer - {Object} layerContext object
|
||||
*/
|
||||
processLayer: function(layerArray, layer) {
|
||||
if (layer.layersContext) {
|
||||
|
||||
@@ -69,7 +69,7 @@ OpenLayers.Format.Text = OpenLayers.Class(OpenLayers.Format, {
|
||||
* Return a list of features from a Tab Seperated Values text string.
|
||||
*
|
||||
* Parameters:
|
||||
* data - {String}
|
||||
* text - {String}
|
||||
*
|
||||
* Returns:
|
||||
* An Array of <OpenLayers.Feature.Vector>s
|
||||
|
||||
@@ -270,7 +270,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
||||
|
||||
/**
|
||||
* Return a multipoint feature given a multipoint WKT fragment.
|
||||
* @param {String} A WKT fragment representing the multipoint
|
||||
* @param {String} str A WKT fragment representing the multipoint
|
||||
* @returns {OpenLayers.Feature.Vector} A multipoint feature
|
||||
* @private
|
||||
*/
|
||||
@@ -289,7 +289,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
||||
|
||||
/**
|
||||
* Return a linestring feature given a linestring WKT fragment.
|
||||
* @param {String} A WKT fragment representing the linestring
|
||||
* @param {String} str A WKT fragment representing the linestring
|
||||
* @returns {OpenLayers.Feature.Vector} A linestring feature
|
||||
* @private
|
||||
*/
|
||||
@@ -306,7 +306,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
||||
|
||||
/**
|
||||
* Return a multilinestring feature given a multilinestring WKT fragment.
|
||||
* @param {String} A WKT fragment representing the multilinestring
|
||||
* @param {String} str A WKT fragment representing the multilinestring
|
||||
* @returns {OpenLayers.Feature.Vector} A multilinestring feature
|
||||
* @private
|
||||
*/
|
||||
@@ -325,7 +325,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
||||
|
||||
/**
|
||||
* Return a polygon feature given a polygon WKT fragment.
|
||||
* @param {String} A WKT fragment representing the polygon
|
||||
* @param {String} str A WKT fragment representing the polygon
|
||||
* @returns {OpenLayers.Feature.Vector} A polygon feature
|
||||
* @private
|
||||
*/
|
||||
@@ -346,7 +346,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
||||
|
||||
/**
|
||||
* Return a multipolygon feature given a multipolygon WKT fragment.
|
||||
* @param {String} A WKT fragment representing the multipolygon
|
||||
* @param {String} str A WKT fragment representing the multipolygon
|
||||
* @returns {OpenLayers.Feature.Vector} A multipolygon feature
|
||||
* @private
|
||||
*/
|
||||
@@ -365,7 +365,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
||||
|
||||
/**
|
||||
* Return an array of features given a geometrycollection WKT fragment.
|
||||
* @param {String} A WKT fragment representing the geometrycollection
|
||||
* @param {String} str A WKT fragment representing the geometrycollection
|
||||
* @returns {Array} An array of OpenLayers.Feature.Vector
|
||||
* @private
|
||||
*/
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* Read and write Web Map Context documents.
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Format.XML>
|
||||
* - <OpenLayers.Format.Context>
|
||||
*/
|
||||
OpenLayers.Format.WMC = OpenLayers.Class(OpenLayers.Format.Context, {
|
||||
|
||||
@@ -37,7 +37,7 @@ OpenLayers.Format.WMC = OpenLayers.Class(OpenLayers.Format.Context, {
|
||||
* Create a layer context object given a wms layer object.
|
||||
*
|
||||
* Parameters:
|
||||
* obj - {<OpenLayers.Layer.WMS>} The layer.
|
||||
* layer - {<OpenLayers.Layer.WMS>} The layer.
|
||||
*
|
||||
* Returns:
|
||||
* {Object} A layer context object.
|
||||
|
||||
@@ -1011,7 +1011,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* null or undefined, null will be returned.
|
||||
*
|
||||
* Parameters:
|
||||
* object - {Object} An object.
|
||||
* obj - {Object} An object.
|
||||
* prop - {String} A property.
|
||||
*
|
||||
* Returns:
|
||||
@@ -1143,7 +1143,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
* Create a StyleList node given a layer context.
|
||||
*
|
||||
* Parameters:
|
||||
* context - {Object} Layer context object.
|
||||
* layer - {Object} Layer context object.
|
||||
*
|
||||
* Returns:
|
||||
* {Element} A WMC StyleList element node.
|
||||
|
||||
Reference in New Issue
Block a user