[OpenLayers-Commits] r3639 - trunk/openlayers/lib/OpenLayers/Handler
commits at openlayers.org
commits at openlayers.org
Fri Jul 6 19:05:28 EDT 2007
Author: euzuro
Date: 2007-07-06 19:05:28 -0400 (Fri, 06 Jul 2007)
New Revision: 3639
Modified:
trunk/openlayers/lib/OpenLayers/Handler/Drag.js
Log:
cosmetic nd changes, coding standards
Modified: trunk/openlayers/lib/OpenLayers/Handler/Drag.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Drag.js 2007-07-06 23:05:00 UTC (rev 3638)
+++ trunk/openlayers/lib/OpenLayers/Handler/Drag.js 2007-07-06 23:05:28 UTC (rev 3639)
@@ -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 @@
* Parameters:
* control - {<OpenLayers.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 @@
/**
* 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 @@
* 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 @@
* 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)) {
More information about the Commits
mailing list