Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
Issue #175 bugfixes after testing ongoing
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwouaiebe committed Sep 5, 2021
1 parent cbfff78 commit 28637fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion buildNumber.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "buildNumber" : "02716"}
{ "buildNumber" : "02717"}
4 changes: 2 additions & 2 deletions src/coreLib/HTMLSanitizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,12 @@ class HTMLSanitizer {
targetNode.textContent = '';
}
}

/**
This method clone a DOM node, removing all invalid childs and attributes
@param {HTMLElement} htmlElement the node to clone
*/

clone ( htmlElement ) {
let clone = document.createElement ( htmlElement.tagName );
this.#cloneNode ( htmlElement, clone );
Expand Down
2 changes: 2 additions & 0 deletions src/dialogBase/BaseDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,9 @@ class BaseDialog {
if ( this.canClose ( ) ) {
this.#destructor ( );
this.#onPromiseOkFct ( returnValue );
return true;
}
return false;
}

/**
Expand Down
5 changes: 3 additions & 2 deletions src/dialogNotes/NoteDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ class NoteDialog extends BaseDialog {
}

onOk ( ) {
this.#destructor ( );
super.onOk ( );
if ( super.onOk ( ) ) {
this.#destructor ( );
}
}

/**
Expand Down

0 comments on commit 28637fa

Please sign in to comment.