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

View File

@@ -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 - {<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 @@ 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)) {