Skip to content

Commit 7a1b43a

Browse files
committed
Remove leftover review comments from #2627
1 parent 44dcea8 commit 7a1b43a

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Radzen.Blazor/wwwroot/Radzen.Blazor.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,8 +2759,6 @@ window.Radzen = {
27592759
var dialogResize = function (e) {
27602760
if (!dialog) return;
27612761

2762-
// Nothing calls back into JS when a nested dialog closes - closeDialog
2763-
// only runs once the last dialog is gone - so self-dispose on detach.
27642762
if (!e[0].target.isConnected) {
27652763
resizer.dispose();
27662764
return;
@@ -2796,12 +2794,9 @@ window.Radzen = {
27962794
Radzen.dialogResizer = null;
27972795
}
27982796
},
2799-
// Kept so that anything still calling the old single-observer API works.
28002797
disconnect: function () { this.dispose(); }
28012798
};
28022799

2803-
// One resizer per dialog: a nested dialog used to overwrite the single
2804-
// global slot, orphaning the outer dialog's observer.
28052800
Radzen.dialogResizers = Radzen.dialogResizers || [];
28062801
Radzen.dialogResizers.push(resizer);
28072802
Radzen.dialogResizer = resizer;
@@ -2810,9 +2805,6 @@ window.Radzen = {
28102805
if (options.draggable) {
28112806
var dialogTitle = lastDialog.parentElement.querySelector('.rz-dialog-titlebar');
28122807
if (dialogTitle) {
2813-
// Stored on the element: Radzen[dialogTitle] keyed every titlebar under
2814-
// the same "[object HTMLDivElement]" string, so a nested dialog replaced
2815-
// the outer dialog's handler.
28162808
dialogTitle.dragHandler = function (e) {
28172809
var rect = lastDialog.parentElement.getBoundingClientRect();
28182810
var offsetX = e.clientX - rect.left;
@@ -2853,8 +2845,6 @@ window.Radzen = {
28532845
}
28542846
},
28552847
closeDialog: function () {
2856-
// closeDialog only runs once the last dialog is gone, so every resizer that is
2857-
// still registered is finished with.
28582848
var resizers = (Radzen.dialogResizers || []).slice();
28592849
for (var i = 0; i < resizers.length; i++) {
28602850
resizers[i].dispose();

0 commit comments

Comments
 (0)