Sparklines are fixed wifth and do not need to resize. Removing this eases memory consumption drastically.

This commit is contained in:
Rashid Khan 2013-12-12 16:12:45 -07:00
parent 384322abdb
commit b80b775db4

View file

@ -658,12 +658,8 @@ define([
}
// Receive render events
scope.$watch('series', function () {
render_panel();
});
// Re-render if the window is resized
angular.element(window).bind('resize', function () {
scope.$watch('series', function (series) {
console.log(series.length);
render_panel();
});