HTRACE-140. Web UI of htraced causes high CPU usage if search result is empty (iwasakims)
diff --git a/htrace-core/src/web/app/models/span.js b/htrace-core/src/web/app/models/span.js
index 306533d..06b6b3c 100644
--- a/htrace-core/src/web/app/models/span.js
+++ b/htrace-core/src/web/app/models/span.js
@@ -102,7 +102,7 @@
},
initialize: function() {
- this.on("sync", function(collection, response, options) {
+ this.on("reset", function(collection, response, options) {
if (response.length == 0) {
delete this.links[this.state.currentPage];
this.getPreviousPage();