Fix typos in documentation strings.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -15,8 +15,8 @@ OpenLayers.Control.EditingToolbar.prototype =
|
||||
|
||||
/**
|
||||
* Create an editing toolbar for a given layer.
|
||||
* @param OpenLayers.Layer.Vector layer
|
||||
* @param Object options
|
||||
* @param {OpenLayers.Layer.Vector} layer
|
||||
* @param {Object} options
|
||||
*/
|
||||
initialize: function(layer, options) {
|
||||
OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);
|
||||
|
||||
@@ -163,9 +163,9 @@ OpenLayers.Control.PanZoomBar.prototype =
|
||||
return centered;
|
||||
},
|
||||
/*
|
||||
* @param evt
|
||||
* This function is used to pass events that happen on the div, or the map,
|
||||
* through to the slider, which then does its moving thing.
|
||||
* @param {OpenLayers.Event} evt
|
||||
*/
|
||||
passEventToSlider:function(evt) {
|
||||
this.sliderEvents.handleBrowserEvent(evt);
|
||||
@@ -185,8 +185,8 @@ OpenLayers.Control.PanZoomBar.prototype =
|
||||
},
|
||||
|
||||
/*
|
||||
* @param evt
|
||||
* event listener for clicks on the slider
|
||||
* @param {OpenLayers.Event} evt
|
||||
*/
|
||||
zoomBarDown:function(evt) {
|
||||
if (!OpenLayers.Event.isLeftClick(evt)) return;
|
||||
@@ -201,10 +201,10 @@ OpenLayers.Control.PanZoomBar.prototype =
|
||||
},
|
||||
|
||||
/*
|
||||
* @param evt
|
||||
* This is what happens when a click has occurred, and the client is dragging.
|
||||
* Here we must ensure that the slider doesn't go beyond the bottom/top of the
|
||||
* zoombar div, as well as moving the slider to its new visual location
|
||||
* @param {OpenLayers.Event} evt
|
||||
*/
|
||||
zoomBarDrag:function(evt) {
|
||||
if (this.mouseDragStart != null) {
|
||||
@@ -221,9 +221,9 @@ OpenLayers.Control.PanZoomBar.prototype =
|
||||
},
|
||||
|
||||
/*
|
||||
* @param evt
|
||||
* Perform cleanup when a mouseup event is received -- discover new zoom level
|
||||
* and switch to it.
|
||||
* Perform cleanup when a mouseup event is received -- discover new zoom
|
||||
* level and switch to it.
|
||||
* @param {OpenLayers.Event} evt
|
||||
*/
|
||||
zoomBarUp:function(evt) {
|
||||
if (!OpenLayers.Event.isLeftClick(evt)) return;
|
||||
|
||||
@@ -126,7 +126,7 @@ OpenLayers.Control.Panel.prototype =
|
||||
* To build a toolbar, you add a set of controls to it. addControls
|
||||
* lets you add a single control or a list of controls to the
|
||||
* Control Panel.
|
||||
* @param OpenLayers.Control
|
||||
* @param {OpenLayers.Control} controls
|
||||
*/
|
||||
addControls: function(controls) {
|
||||
if (!(controls instanceof Array)) {
|
||||
|
||||
Reference in New Issue
Block a user