Browse files

fixing adding multiple charts

  • Loading branch information...
1 parent d9dbf0a commit 1b7fe099c8e7cff40868f67fdff65b243f8eaf97 @aaronpowell committed Feb 23, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 public/scripts/chart.js
View
3 public/scripts/chart.js
@@ -1,10 +1,11 @@
-doinnothin.chart = (function(Raphael, jQuery) {
+doinnothin.chart = (function(Raphael, $) {
function refresh() {
show(doinnothin.times);
};
function show(times) {
+ $('#chart').children().remove();
var r = Raphael('chart'),
fin = function () {
this.flag = r.g.popup(this.bar.x, this.bar.y, (this.bar.value || "0") + 's').insertBefore(this);

0 comments on commit 1b7fe09

Please sign in to comment.