- changed status to resolved
Uncaught TypeError: Cannot read property 'draw' of undefined
Issue #56
resolved
Saw this error in Opera:
Uncaught TypeError: Cannot read property 'draw' of undefined
javascript2.js?975:1360
// redraw on container resize
var currentWidth = $("#main").width();
$(window).resize(function () {
if (currentWidth != $("#main").width()) {
chart.draw(data, options);
currentWidth = $("#main").width();
}
});
Looks like chart stays undefined when not on a statistics page.
Comments (1)
-
- Log in to comment