docs: Make getter/setter documentation more consistent.
MODIFY
src/annotation.js
src/annotation.js
@@ -420,7 +420,7 @@ var annotation = function (type, args) {
};
/**
- * Set or get options.
+ * Get or set options.
*
* @param {string|object} [arg1] If `undefined`, return the options object.
* If a string, either set or return the option of that name. If an
@@ -485,7 +485,7 @@ var annotation = function (type, args) {
};
/**
- * Set or get style.
+ * Get or set style.
*
* @param {string|object} [arg1] If `undefined`, return the current style
* object. If a string and `arg2` is undefined, return the style

MODIFY
src/map.js
src/map.js
@@ -569,8 +569,7 @@ var map = function (arg) {
};
/**
- * Set center of the map to the given geographic coordinates, or get the
- * current center. Uses bare objects {x: 0, y: 0}.
+ * Get or set the center of the map in the given geographic coordinates.
*
* @param {geo.geoPosition} coordinates If specified, the new center of the
* map.

MODIFY
src/mapInteractor.js
src/mapInteractor.js
@@ -781,7 +781,7 @@ var mapInteractor = function (args) {
};
/**
- * Sets or gets map for this interactor, adds draw region layer if needed.
+ * Get or set the map for this interactor, adds draw region layer if needed.
*
* @param {geo.map} [val] Either a new map object for `undefined` to return
* the current map object.

MODIFY
src/trackFeature.js
src/trackFeature.js
@@ -451,7 +451,7 @@ var trackFeature = function (arg) {
};
/**
- * Set or get style.
+ * Get or set style.
*
* @param {string|object} [arg1] If `undefined`, return the current style
* object. If a string and `arg2` is undefined, return the style

MODIFY
src/ui/colorLegendWidget.js
src/ui/colorLegendWidget.js
@@ -125,7 +125,7 @@ var colorLegendWidget = function (arg) {
};
/**
- * Set or get categories.
+ * Get or set categories.
* @param {geo.gui.colorLegendWidget.category[]} [categories] If `undefined`,
* return the current legend categories array. If an array is provided,
* remove current legends and recreate with the new categories.

MODIFY
src/ui/scaleWidget.js
src/ui/scaleWidget.js
@@ -298,7 +298,7 @@ var scaleWidget = function (arg) {
};
/**
- * Set or get options.
+ * Get or set options.
*
* @param {string|object} [arg1] If `undefined`, return the options object.
* If a string, either set or return the option of that name. If an

docs: Make getter/setter documentation more consistent.