summaryrefslogtreecommitdiff
path: root/src/leaflet-soton.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/leaflet-soton.js')
-rw-r--r--src/leaflet-soton.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index a90c163..b9818bc 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -214,10 +214,13 @@ SELECT * WHERE {\
url: 'http://sparql.data.southampton.ac.uk/?query=' + encodeURIComponent(query)
},
function(data) {
- // Only report no data if fetching data failed, and there
- // is no local data
- if (data === null && LS.workstationData === null) {
- LS.fire("workstationData", null);
+ // If fetching data has failed
+ if (data === null) {
+ // Only report this if there is no existing data
+ if (LS.workstationData === null) {
+ LS.fire("workstationData", null);
+ }
+
return;
}