Get rid of goog.functions
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
goog.provide('ol.interaction.Pointer');
|
||||
|
||||
goog.require('goog.functions');
|
||||
goog.require('ol');
|
||||
goog.require('ol.MapBrowserEvent.EventType');
|
||||
goog.require('ol.MapBrowserPointerEvent');
|
||||
@@ -150,7 +149,7 @@ ol.interaction.Pointer.handleDragEvent = ol.nullFunction;
|
||||
* @return {boolean} Capture dragging.
|
||||
* @this {ol.interaction.Pointer}
|
||||
*/
|
||||
ol.interaction.Pointer.handleUpEvent = goog.functions.FALSE;
|
||||
ol.interaction.Pointer.handleUpEvent = ol.functions.FALSE;
|
||||
|
||||
|
||||
/**
|
||||
@@ -158,7 +157,7 @@ ol.interaction.Pointer.handleUpEvent = goog.functions.FALSE;
|
||||
* @return {boolean} Capture dragging.
|
||||
* @this {ol.interaction.Pointer}
|
||||
*/
|
||||
ol.interaction.Pointer.handleDownEvent = goog.functions.FALSE;
|
||||
ol.interaction.Pointer.handleDownEvent = ol.functions.FALSE;
|
||||
|
||||
|
||||
/**
|
||||
@@ -215,4 +214,6 @@ ol.interaction.Pointer.handleEvent = function(mapBrowserEvent) {
|
||||
* @return {boolean} Should the event be stopped?
|
||||
* @protected
|
||||
*/
|
||||
ol.interaction.Pointer.prototype.shouldStopEvent = goog.functions.identity;
|
||||
ol.interaction.Pointer.prototype.shouldStopEvent = function(handled) {
|
||||
return handled;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user