Skip to content

Commit

Permalink
refactor(example): remove unuseless variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed May 20, 2021
1 parent 1ca0c17 commit 041b62a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/misc_camera_animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
coord: new itowns.Coordinates('EPSG:4326', 2.351323, 48.856712),
range: 25000000,
}
var promises = [];

// `viewerDiv` will contain iTowns' rendering area (`<canvas>`)
var viewerDiv = document.getElementById('viewerDiv');
Expand Down Expand Up @@ -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);
});
</script>
</body>
Expand Down

0 comments on commit 041b62a

Please sign in to comment.