From 5ccf94a395035872030dfcdea8e27e9141f2e966 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 27 Feb 2013 13:58:30 +0100 Subject: [PATCH] Do not use goog.now() in the examples (see #229) --- examples/side-by-side.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/side-by-side.js b/examples/side-by-side.js index b5d108b0df..661d1ebb79 100644 --- a/examples/side-by-side.js +++ b/examples/side-by-side.js @@ -131,7 +131,7 @@ keyboardInteraction.addCallback('l', function() { view.setCenter(LONDON); }); keyboardInteraction.addCallback('L', function() { - var start = goog.now(); + var start = +new Date(); var duration = 5000; var bounce = ol.animation.bounce({ resolution: 2 * view.getResolution(), @@ -166,7 +166,7 @@ keyboardInteraction.addCallback('m', function() { view.setCenter(MOSCOW); }); keyboardInteraction.addCallback('M', function() { - var start = goog.now(); + var start = +new Date(); var duration = 5000; var bounce = ol.animation.bounce({ resolution: 2 * view.getResolution(),