From: Thierry Parmentelat Date: Mon, 16 Sep 2013 12:27:14 +0000 (+0200) Subject: reset self.in_set_buffer once consumed X-Git-Tag: myslice-0.2-3~9^2~6 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=42575351510d84dc6713b8d35e970a5baf9af955 reset self.in_set_buffer once consumed --- diff --git a/plugins/googlemaps/static/js/googlemaps.js b/plugins/googlemaps/static/js/googlemaps.js index 4cfb3d35..2add9611 100644 --- a/plugins/googlemaps/static/js/googlemaps.js +++ b/plugins/googlemaps/static/js/googlemaps.js @@ -23,7 +23,7 @@ googlemaps_debug_detailed=false; // query status this.received_all = false; this.received_set = false; - this.in_set_buffer = Array(); + this.in_set_buffer = []; // key -> { marker, checked } this.map_markers = {} @@ -318,6 +318,8 @@ googlemaps_debug_detailed=false; $.each(this.in_set_buffer, function(i, record) { self.set_checkbox(record, true); }); + // reset + self.in_set_buffer = []; this.unspin(); }