Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove data when cleared #18

Merged
merged 1 commit into from

2 participants

@bozdoz

this.heatmap.clear() just clears the visual data; this.data = [] will reset the data to await new data.

@bozdoz bozdoz Remove data when cleared
this.heatmap.clear() just clears the visual data; this.data = [] will reset the data to await new data.
943d266
@sunng87
Owner

Oh I forgot to cleanup the data array. Thanks for the patch.
I'm getting pretty busy these days. I have to find a weekend to cleanup the code and documents.

@sunng87 sunng87 merged commit c3b4822 into from
@bozdoz

It's been fun. I haven't done much with github. Just learning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 5, 2013
  1. @bozdoz

    Remove data when cleared

    bozdoz authored
    this.heatmap.clear() just clears the visual data; this.data = [] will reset the data to await new data.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  heatcanvas-leaflet.js
View
1  heatcanvas-leaflet.js
@@ -107,6 +107,7 @@ L.TileLayer.HeatCanvas = L.Class.extend({
clear: function(){
this.heatmap.clear();
+ this.data = [];
},
redraw: function(){
Something went wrong with that request. Please try again.