Skip to content

Commit

Permalink
fix(chore): linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Dec 4, 2022
1 parent a5663ce commit 98b36de
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
24 changes: 12 additions & 12 deletions src/definitions/modules/flyout.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,18 +484,18 @@
.on('keydown' + eventNamespace, module.event.keyboard)
;
},
},
observeChanges: function() {
if('MutationObserver' in window) {
observer = new MutationObserver(function(mutations) {
module.refreshInputs();
if(settings.autofocus && $inputs.filter(':focus').length === 0) {
module.set.autofocus();
}
});
observer.observe(element, {
childList : true,
subtree : true,
},
observeChanges: function () {
if ('MutationObserver' in window) {
observer = new MutationObserver(function (mutations) {
module.refreshInputs();
if (settings.autofocus && $inputs.filter(':focus').length === 0) {
module.set.autofocus();
}
});
observer.observe(element, {
childList : true,
subtree : true,
});
module.debug('Setting up mutation observer', observer);
}
Expand Down
30 changes: 15 additions & 15 deletions src/definitions/modules/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,21 +254,21 @@
$context.dimmer('destroy');
},

observeChanges: function() {
if('MutationObserver' in window) {
observer = new MutationObserver(function(mutations) {
if(settings.observeChanges) {
module.debug('DOM tree modified, refreshing');
module.refresh();
}
module.refreshInputs();
if(settings.autofocus && $inputs.filter(':focus').length === 0) {
module.set.autofocus();
}
});
observer.observe(element, {
childList : true,
subtree : true,
observeChanges: function () {
if ('MutationObserver' in window) {
observer = new MutationObserver(function (mutations) {
if (settings.observeChanges) {
module.debug('DOM tree modified, refreshing');
module.refresh();
}
module.refreshInputs();
if (settings.autofocus && $inputs.filter(':focus').length === 0) {
module.set.autofocus();
}
});
observer.observe(element, {
childList : true,
subtree : true,
});
module.debug('Setting up mutation observer', observer);
}
Expand Down

0 comments on commit 98b36de

Please sign in to comment.