Merge pull request #6683 from fredj/this_defaultBoxEndCondition

Add this jsdoc tag to ol.interaction.DragBox.defaultBoxEndCondition
This commit is contained in:
Frédéric Junod
2017-04-10 09:29:47 +02:00
committed by GitHub

View File

@@ -78,6 +78,7 @@ ol.inherits(ol.interaction.DragBox, ol.interaction.Pointer);
* @param {ol.Pixel} startPixel The starting pixel of the box.
* @param {ol.Pixel} endPixel The end pixel of the box.
* @return {boolean} Whether or not the boxend condition should be fired.
* @this {ol.interaction.DragBox}
*/
ol.interaction.DragBox.defaultBoxEndCondition = function(mapBrowserEvent, startPixel, endPixel) {
var width = endPixel[0] - startPixel[0];