Remove use of goog.object.containsKey
This commit is contained in:
@@ -126,8 +126,8 @@ ol.pointer.TouchSource.prototype.isPrimaryTouch_ = function(inTouch) {
|
||||
*/
|
||||
ol.pointer.TouchSource.prototype.setPrimaryTouch_ = function(inTouch) {
|
||||
var count = goog.object.getCount(this.pointerMap);
|
||||
if (count === 0 || (count === 1 && goog.object.containsKey(this.pointerMap,
|
||||
ol.pointer.MouseSource.POINTER_ID.toString()))) {
|
||||
if (count === 0 || (count === 1 &&
|
||||
ol.pointer.MouseSource.POINTER_ID.toString() in this.pointerMap)) {
|
||||
this.firstTouchId_ = inTouch.identifier;
|
||||
this.cancelResetClickCount_();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user