diff --git a/lib/OpenLayers/Handler/Drag.js b/lib/OpenLayers/Handler/Drag.js index c606456441..30ff3dea3d 100644 --- a/lib/OpenLayers/Handler/Drag.js +++ b/lib/OpenLayers/Handler/Drag.js @@ -9,12 +9,14 @@ * Class: OpenLayers.Handler.Drag */ OpenLayers.Handler.Drag = OpenLayers.Class.create(); -OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler, { +OpenLayers.Handler.Drag.prototype = + OpenLayers.Class.inherit( OpenLayers.Handler, { + /** * Property: started * {Boolean} When a mousedown event is received, we want to record it, but - * not set 'dragging' until the mouse moves after starting. - **/ + * not set 'dragging' until the mouse moves after starting. + */ started: false, /** @@ -42,9 +44,9 @@ OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler * Parameters: * control - {} * callbacks - {Object} An object containing a single function to be - * called when the drag operation is finished. - * The callback should expect to recieve a single - * argument, the point geometry. + * called when the drag operation is finished. + * The callback should expect to recieve a single + * argument, the point geometry. * options - {Object} */ initialize: function(control, callbacks, options) { @@ -141,8 +143,8 @@ OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler /** * Method: click * The drag handler captures the click event. If something else registers - * for clicks on the same element, its listener will not be called after a - * drag. + * for clicks on the same element, its listener will not be called + * after a drag. * * Parameters: * evt - {Event} @@ -163,8 +165,8 @@ OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler * Method: activate * Activate the handler. * - * Return: {Boolean} Was activation successful. Returns false if already - * active. + * Return: {Boolean} Was activation successful. + * Returns false if already active. */ activate: function() { if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) { @@ -179,8 +181,8 @@ OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler * Method: deactivate * Deactivate the handler. * - * Return: {Boolean} Was deactivation successful. Returns false if already - * active. + * Return: {Boolean} Was deactivation successful. + * Returns false if already active. */ deactivate: function() { if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {