Closed GoogleCodeExporter closed 8 years ago
You're not supposed to load the api twice.
But mainly it looks like you're inserting the same PieChart object into the
FlowPanel.
Original comment by rglafo...@gmail.com
on 24 Feb 2015 at 3:46
No, the problem is that is a singleton in the javascript environment.
If you call Apiloader more than one time in quick succession in the entry point
your load will be deferred and inserted inside queuedApiLoads vector.
When the api finish initialization only the last call will be executed because
queuedApiLoads is the last builded and contains only one reference.
After this initialization
if ($wnd['google'] && $wnd.google['load']) {
// The API has already been loaded.
return true;
}
will return true and no more runnable are stored inside the vector, and so all
works fine.
Cheers
Original comment by antonio....@gmail.com
on 4 Mar 2015 at 11:09
Original issue reported on code.google.com by
antonio....@gmail.com
on 19 Dec 2014 at 9:57Attachments: