Skip to content
Permalink
Browse files
Use new abort functionality.
  • Loading branch information
RubenVerborgh committed Jul 20, 2016
1 parent 0a4647f commit 279cf6e19cbd4ac185b93f0b4a651aba90d1bcd0
Showing with 6 additions and 2 deletions.
  1. +6 −2 ldf-client-jquery.js
@@ -222,7 +222,8 @@
prefixes: this.options.prefixes,
datetime: parseDate(this.options.datetime),
};
config.fragmentsClient = new ldf.FragmentsClient(datasources, config);
this.fragmentsClient = config.fragmentsClient
= new ldf.FragmentsClient(datasources, config);

// Create the iterator to solve the query
var resultsIterator;
@@ -276,7 +277,10 @@
this.$stop.hide();
this.$start.show();
this._resultsIterator && this._resultsIterator.removeAllListeners();
ldf.HttpClient.abortAll && ldf.HttpClient.abortAll();
if (this.fragmentsClient.abortAll)
this.fragmentsClient.abortAll();
else if (ldf.HttpClient.abortAll)
ldf.HttpClient.abortAll();
error && error.message && this.$results.text(error.message);
},

0 comments on commit 279cf6e

Please sign in to comment.