cosmetic nd changes, coding standards

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3639 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-07-06 23:05:28 +00:00
parent ad52e8c6fd
commit af8cce4f7b
+10 -8
View File
@@ -9,12 +9,14 @@
* Class: OpenLayers.Handler.Drag * Class: OpenLayers.Handler.Drag
*/ */
OpenLayers.Handler.Drag = OpenLayers.Class.create(); 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 * Property: started
* {Boolean} When a mousedown event is received, we want to record it, but * {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, started: false,
/** /**
@@ -141,8 +143,8 @@ OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler
/** /**
* Method: click * Method: click
* The drag handler captures the click event. If something else registers * 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 * for clicks on the same element, its listener will not be called
* drag. * after a drag.
* *
* Parameters: * Parameters:
* evt - {Event} * evt - {Event}
@@ -163,8 +165,8 @@ OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler
* Method: activate * Method: activate
* Activate the handler. * Activate the handler.
* *
* Return: {Boolean} Was activation successful. Returns false if already * Return: {Boolean} Was activation successful.
* active. * Returns false if already active.
*/ */
activate: function() { activate: function() {
if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) { if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) {
@@ -179,8 +181,8 @@ OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler
* Method: deactivate * Method: deactivate
* Deactivate the handler. * Deactivate the handler.
* *
* Return: {Boolean} Was deactivation successful. Returns false if already * Return: {Boolean} Was deactivation successful.
* active. * Returns false if already active.
*/ */
deactivate: function() { deactivate: function() {
if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) { if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {