Fix infinite loop when no citations were present

This commit is contained in:
Ludwig Schubert
2017-08-10 11:19:32 -07:00
parent a1800ca2b3
commit 8f4722173a
4 changed files with 211 additions and 12 deletions
+6
View File
@@ -72,6 +72,12 @@ export class Cite extends T(HTMLElement) {
}
disconnectedCallback() {
const options = { detail: [this, this.keys], bubbles: true };
const event = new CustomEvent('onCiteKeyRemoved', options);
document.dispatchEvent(event);
}
/* Observed Attributes */
// renderCitationNumbers(citations) {