Inline simple goog.isDef() calls
This commit is contained in:
@@ -64,7 +64,7 @@ describe('ol.interaction.Modify', function() {
|
||||
var viewport = map.getViewport();
|
||||
// calculated in case body has top < 0 (test runner with small window)
|
||||
var position = goog.style.getClientPosition(viewport);
|
||||
var shiftKey = goog.isDef(opt_shiftKey) ? opt_shiftKey : false;
|
||||
var shiftKey = opt_shiftKey !== undefined ? opt_shiftKey : false;
|
||||
var event = new ol.MapBrowserPointerEvent(type, map,
|
||||
new ol.pointer.PointerEvent(type,
|
||||
new goog.events.BrowserEvent({
|
||||
|
||||
Reference in New Issue
Block a user