Skip to content

Commit

Permalink
[MINOR] [UI] DAG visualization: trim whitespace from input
Browse files Browse the repository at this point in the history
Just as a safeguard against DOM rewriting.

Author: Andrew Or <[email protected]>

Closes apache#6732 from andrewor14/dag-viz-trim and squashes the following commits:

7e9bacb [Andrew Or] [MINOR] [UI] DAG visualization: trim whitespace from input
  • Loading branch information
Andrew Or committed Jun 9, 2015
1 parent 490d5a7 commit 0d5892d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function renderDagVizForJob(svgContainer) {
// them separately later. Note that we cannot draw them now because we need to
// put these edges in a separate container that is on top of all stage graphs.
metadata.selectAll(".incoming-edge").each(function(v) {
var edge = d3.select(this).text().split(","); // e.g. 3,4 => [3, 4]
var edge = d3.select(this).text().trim().split(","); // e.g. 3,4 => [3, 4]
crossStageEdges.push(edge);
});
});
Expand Down

0 comments on commit 0d5892d

Please sign in to comment.