From 42575351510d84dc6713b8d35e970a5baf9af955 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 16 Sep 2013 14:27:14 +0200 Subject: [PATCH] reset self.in_set_buffer once consumed --- plugins/googlemaps/static/js/googlemaps.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.43.0