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:
@@ -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,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -42,9 +44,9 @@ OpenLayers.Handler.Drag.prototype = OpenLayers.Class.inherit( OpenLayers.Handler
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* control - {<OpenLayers.Control>}
|
* control - {<OpenLayers.Control>}
|
||||||
* callbacks - {Object} An object containing a single function to be
|
* callbacks - {Object} An object containing a single function to be
|
||||||
* called when the drag operation is finished.
|
* called when the drag operation is finished.
|
||||||
* The callback should expect to recieve a single
|
* The callback should expect to recieve a single
|
||||||
* argument, the point geometry.
|
* argument, the point geometry.
|
||||||
* options - {Object}
|
* options - {Object}
|
||||||
*/
|
*/
|
||||||
initialize: function(control, callbacks, options) {
|
initialize: function(control, callbacks, options) {
|
||||||
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user