Use goog.asserts.assertInstanceof

This commit is contained in:
Tom Payne
2013-04-08 19:03:49 +02:00
parent 24cfd8a9be
commit 098bddb72f
11 changed files with 18 additions and 18 deletions

View File

@@ -51,7 +51,7 @@ ol.interaction.KeyboardZoom.prototype.handleMapBrowserEvent =
map.requestRenderFrame();
// FIXME works for View2D only
var view = map.getView();
goog.asserts.assert(view instanceof ol.View2D);
goog.asserts.assertInstanceof(view, ol.View2D);
view.zoomByDelta(map, delta, undefined,
ol.interaction.KEYBOARD_ZOOM_DURATION);
keyEvent.preventDefault();