Use bracket notation instead of goog.object.set
This commit is contained in:
@@ -169,8 +169,7 @@ ol.pointer.MouseSource.prototype.mousedown = function(inEvent) {
|
||||
this.cancel(inEvent);
|
||||
}
|
||||
var e = ol.pointer.MouseSource.prepareEvent(inEvent, this.dispatcher);
|
||||
goog.object.set(this.pointerMap,
|
||||
ol.pointer.MouseSource.POINTER_ID.toString(), inEvent);
|
||||
this.pointerMap[ol.pointer.MouseSource.POINTER_ID.toString()] = inEvent;
|
||||
this.dispatcher.down(e, inEvent);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -108,8 +108,7 @@ ol.pointer.MsSource.prototype.cleanup = function(pointerId) {
|
||||
* @param {goog.events.BrowserEvent} inEvent
|
||||
*/
|
||||
ol.pointer.MsSource.prototype.msPointerDown = function(inEvent) {
|
||||
goog.object.set(this.pointerMap,
|
||||
inEvent.getBrowserEvent().pointerId, inEvent);
|
||||
this.pointerMap[inEvent.getBrowserEvent().pointerId] = inEvent;
|
||||
var e = this.prepareEvent_(inEvent);
|
||||
this.dispatcher.down(e, inEvent);
|
||||
};
|
||||
|
||||
@@ -312,11 +312,11 @@ ol.pointer.TouchSource.prototype.touchstart = function(inEvent) {
|
||||
* @param {Object} inPointer
|
||||
*/
|
||||
ol.pointer.TouchSource.prototype.overDown_ = function(browserEvent, inPointer) {
|
||||
goog.object.set(this.pointerMap, inPointer.pointerId, {
|
||||
this.pointerMap[inPointer.pointerId] = {
|
||||
target: inPointer.target,
|
||||
out: inPointer,
|
||||
outTarget: inPointer.target
|
||||
});
|
||||
};
|
||||
this.dispatcher.over(inPointer, browserEvent);
|
||||
this.dispatcher.enter(inPointer, browserEvent);
|
||||
this.dispatcher.down(inPointer, browserEvent);
|
||||
|
||||
Reference in New Issue
Block a user