Replace goog.isNumber

This commit is contained in:
Peter Robins
2016-07-01 09:35:54 +00:00
parent 6d41e87ff5
commit 3eea9d4558
7 changed files with 23 additions and 23 deletions

View File

@@ -82,7 +82,7 @@ ol.inherits(ol.pointer.MsSource, ol.pointer.EventSource);
*/
ol.pointer.MsSource.prototype.prepareEvent_ = function(inEvent) {
var e = inEvent;
if (goog.isNumber(inEvent.pointerType)) {
if (typeof inEvent.pointerType === 'number') {
e = this.dispatcher.cloneEvent(inEvent, inEvent);
e.pointerType = this.POINTER_TYPES[inEvent.pointerType];
}