Remove use of goog.object.containsKey

This commit is contained in:
Frederic Junod committed 2015-11-24 10:17:01 +01:00
1 parent 90e224bd96
commit 8d72589743
6 files changed
+13 -17

No files matched your search

+2 -2
View File
@@ -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_();
}