From 041b62a3fd9fef5ba654afa77ba4cd5902ca1d5d Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Thu, 20 May 2021 16:20:26 +0200 Subject: [PATCH] refactor(example): remove unuseless variable. --- examples/misc_camera_animation.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/misc_camera_animation.html b/examples/misc_camera_animation.html index 6d1b42bf12..19fd9c9a38 100644 --- a/examples/misc_camera_animation.html +++ b/examples/misc_camera_animation.html @@ -34,7 +34,6 @@ coord: new itowns.Coordinates('EPSG:4326', 2.351323, 48.856712), range: 25000000, } - var promises = []; // `viewerDiv` will contain iTowns' rendering area (``) var viewerDiv = document.getElementById('viewerDiv'); @@ -89,10 +88,7 @@ view.addEventListener(itowns.GLOBE_VIEW_EVENTS.GLOBE_INITIALIZED, function init() { // eslint-disable-next-line no-console console.info('Globe initialized'); - Promise.all(promises).then(function _() { - // let's go - travel().then(travel); - }).catch(console.error); + travel().then(travel).catch(console.error); });