You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@htrace.apache.org by iw...@apache.org on 2015/07/08 04:46:36 UTC
incubator-htrace git commit: HTRACE-202. htrace-web: fix "converting
circular object to JSON" error when pressing "clear" button (Colin Patrick
McCabe via iwasakims)
Repository: incubator-htrace
Updated Branches:
refs/heads/master c6d90e724 -> 74544b24d
HTRACE-202. htrace-web: fix "converting circular object to JSON" error when pressing "clear" button (Colin Patrick McCabe via iwasakims)
Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/74544b24
Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/74544b24
Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/74544b24
Branch: refs/heads/master
Commit: 74544b24dc78b1bffcba77b1e2a2653a75e8d89a
Parents: c6d90e7
Author: Masatake Iwasaki <iw...@apache.org>
Authored: Wed Jul 8 11:45:47 2015 +0900
Committer: Masatake Iwasaki <iw...@apache.org>
Committed: Wed Jul 8 11:45:47 2015 +0900
----------------------------------------------------------------------
htrace-webapp/src/main/web/app/search_results_view.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/74544b24/htrace-webapp/src/main/web/app/search_results_view.js
----------------------------------------------------------------------
diff --git a/htrace-webapp/src/main/web/app/search_results_view.js b/htrace-webapp/src/main/web/app/search_results_view.js
index 81197c3..f88b096 100644
--- a/htrace-webapp/src/main/web/app/search_results_view.js
+++ b/htrace-webapp/src/main/web/app/search_results_view.js
@@ -372,7 +372,11 @@ htrace.SearchResultsView = Backbone.View.extend({
}
}
this.render();
- console.log("clearHandler: removing " + JSON.stringify(toDelete));
+ ids = [];
+ for (var i = 0; i < toDelete.length; i++) {
+ ids.push(toDelete[i].get("spanId"));
+ }
+ console.log("clearHandler: removing " + JSON.stringify(ids));
this.searchResults.remove(toDelete);
},