I'd like to store multiple functions in one object. However, my current code seems to overwrite the previous data.
Related: https://stackoverflow.com/a/3733591/309535
Because it is a loop with other stuff going on, the code cannot be within the same block of javascript.
My Code:
<script type="text/javascript">
var at = {
atleft_1: function drawChart() {
// data goes here
}
}
</script>
// Next loop
<script type="text/javascript">
var at = {
atleft_2: function drawChart() {
// data goes here
}
}
</script>