git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reset self.in_set_buffer once consumed
[myslice.git]
/
plugins
/
googlemaps
/
static
/
js
/
googlemaps.js
diff --git
a/plugins/googlemaps/static/js/googlemaps.js
b/plugins/googlemaps/static/js/googlemaps.js
index
4cfb3d3
..
2add961
100644
(file)
--- 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;
// 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 = {}
// 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);
});
$.each(this.in_set_buffer, function(i, record) {
self.set_checkbox(record, true);
});
+ // reset
+ self.in_set_buffer = [];
this.unspin();
}
this.unspin();
}