Replace goog.object.getValues() with ol.object.getValues()
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
goog.provide('ol.interaction.Pointer');
|
||||
|
||||
goog.require('goog.functions');
|
||||
goog.require('goog.object');
|
||||
goog.require('ol');
|
||||
goog.require('ol.MapBrowserEvent.EventType');
|
||||
goog.require('ol.MapBrowserPointerEvent');
|
||||
goog.require('ol.Pixel');
|
||||
goog.require('ol.interaction.Interaction');
|
||||
goog.require('ol.object');
|
||||
|
||||
|
||||
/**
|
||||
@@ -133,7 +133,7 @@ ol.interaction.Pointer.prototype.updateTrackedPointers_ = function(mapBrowserEve
|
||||
// update only when there was a pointerdown event for this pointer
|
||||
this.trackedPointers_[event.pointerId] = event;
|
||||
}
|
||||
this.targetPointers = goog.object.getValues(this.trackedPointers_);
|
||||
this.targetPointers = ol.object.getValues(this.trackedPointers_);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -2,9 +2,6 @@ goog.provide('ol.interaction.Snap');
|
||||
goog.provide('ol.interaction.SnapProperty');
|
||||
|
||||
goog.require('goog.asserts');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.events.EventType');
|
||||
goog.require('goog.object');
|
||||
goog.require('ol');
|
||||
goog.require('ol.Collection');
|
||||
goog.require('ol.CollectionEvent');
|
||||
@@ -14,9 +11,12 @@ goog.require('ol.Feature');
|
||||
goog.require('ol.Object');
|
||||
goog.require('ol.Observable');
|
||||
goog.require('ol.coordinate');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.events.EventType');
|
||||
goog.require('ol.extent');
|
||||
goog.require('ol.geom.Geometry');
|
||||
goog.require('ol.interaction.Pointer');
|
||||
goog.require('ol.object');
|
||||
goog.require('ol.source.Vector');
|
||||
goog.require('ol.source.VectorEvent');
|
||||
goog.require('ol.source.VectorEventType');
|
||||
@@ -591,7 +591,7 @@ ol.interaction.Snap.handleEvent_ = function(evt) {
|
||||
* @private
|
||||
*/
|
||||
ol.interaction.Snap.handleUpEvent_ = function(evt) {
|
||||
var featuresToUpdate = goog.object.getValues(this.pendingFeatures_);
|
||||
var featuresToUpdate = ol.object.getValues(this.pendingFeatures_);
|
||||
if (featuresToUpdate.length) {
|
||||
featuresToUpdate.forEach(this.updateFeature_, this);
|
||||
this.pendingFeatures_ = {};
|
||||
|
||||
Reference in New Issue
Block a user