133
rated 0 times
[
139]
[
6]
/ answers: 1 / hits: 9946
/ 10 Years ago, tue, july 29, 2014, 12:00:00
Initially I put all AmChart configs in AmCharts.ready is everything worked fine.
<script src=amcharts/amcharts.js type=text/javascript></script>
<script src=amcharts/serial.js type=text/javascript></script>
<script>
AmCharts.ready(function() {
console.log(this works);
/* Other configs */
})
</script>
Somehow it stops working when I introduce RequireJS as instructed in amCharts meets requireJS. Whatever code inside AmChart.ready's callback will not be executed. (Oddly it was executed one time during the debugging)
More From » requirejs