Fixed sequence diagram might render multiple times
This commit is contained in:
parent
48d5889a30
commit
48de9a02a3
1 changed files with 12 additions and 9 deletions
|
@ -138,8 +138,10 @@ function finishView(view) {
|
||||||
}
|
}
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
//sequence diagram
|
//sequence diagram
|
||||||
var sequence = view.find(".sequence-diagram.raw").removeClass("raw");
|
var sequences = view.find(".sequence-diagram.raw").removeClass("raw");
|
||||||
|
sequences.each(function (key, value) {
|
||||||
try {
|
try {
|
||||||
|
var sequence = $(value);
|
||||||
sequence.sequenceDiagram({
|
sequence.sequenceDiagram({
|
||||||
theme: 'simple'
|
theme: 'simple'
|
||||||
});
|
});
|
||||||
|
@ -147,6 +149,7 @@ function finishView(view) {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
//flowchart
|
//flowchart
|
||||||
var flow = view.find(".flow-chart.raw").removeClass("raw");
|
var flow = view.find(".flow-chart.raw").removeClass("raw");
|
||||||
flow.each(function (key, value) {
|
flow.each(function (key, value) {
|
||||||
|
|
Loading…
Reference in a new issue