Skip to content

Commit

Permalink
Closes issue CesiumGS#5691
Browse files Browse the repository at this point in the history
Set 'updateTimer = undefined' after 'clearTimeout(updateTimer)' call
  • Loading branch information
avalan4e57 committed Jul 31, 2017
1 parent 4e67172 commit d73c0a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Apps/CesiumViewer/CesiumViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ define([
camera.changed.addEventListener(function() {
if (defined(updateTimer)) {
window.clearTimeout(updateTimer);
updateTimer = undefined;
}
updateTimer = window.setTimeout(saveCamera, 1000);
});
Expand Down

0 comments on commit d73c0a4

Please sign in to comment.