Use bracket notation instead of goog.object.get
This commit is contained in:
@@ -195,8 +195,7 @@ ol.pointer.MouseSource.prototype.mousemove = function(inEvent) {
|
||||
*/
|
||||
ol.pointer.MouseSource.prototype.mouseup = function(inEvent) {
|
||||
if (!this.isEventSimulatedFromTouch_(inEvent)) {
|
||||
var p = goog.object.get(this.pointerMap,
|
||||
ol.pointer.MouseSource.POINTER_ID.toString());
|
||||
var p = this.pointerMap[ol.pointer.MouseSource.POINTER_ID.toString()];
|
||||
|
||||
if (p && p.button === inEvent.button) {
|
||||
var e = ol.pointer.MouseSource.prepareEvent(inEvent, this.dispatcher);
|
||||
|
||||
Reference in New Issue
Block a user