From 54d4434900b0763b1508b1ae3e080ceb13ca5edd Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Tue, 29 Sep 2015 15:21:56 +0200 Subject: [PATCH] Remove goog.isNull in animation class --- src/ol/animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/animation.js b/src/ol/animation.js index 84acd4a2d8..55d4e512ea 100644 --- a/src/ol/animation.js +++ b/src/ol/animation.js @@ -115,7 +115,7 @@ ol.animation.rotate = function(options) { (sourceRotation - frameState.viewState.rotation) * delta; frameState.animate = true; frameState.viewState.rotation += deltaRotation; - if (!goog.isNull(anchor)) { + if (anchor) { var center = frameState.viewState.center; ol.coordinate.sub(center, anchor); ol.coordinate.rotate(center, deltaRotation);