Move history initialisation as Config.reset callback

This commit is contained in:
Ludovic Stephan 2017-03-19 04:59:55 +01:00
parent 66c5a6953c
commit c99e4f26d0
3 changed files with 4 additions and 3 deletions

View file

@ -93,7 +93,7 @@ $(document).ready(function() {
history.update_data(data); history.update_data(data);
} }
history.reset(); Config.reset(history.reset.bind(history));
}); });
</script> </script>

View file

@ -151,7 +151,8 @@ $(document).ready(function() {
} }
updateHistory();
Config.reset(updateHistory);
}); });
</script> </script>

View file

@ -77,7 +77,7 @@ $(document).ready(function() {
} }
history.reset(); Config.reset(history.reset.bind(history));
}); });
</script> </script>