We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0fd68c commit b82272aCopy full SHA for b82272a
datalist-polyfill.js
@@ -68,7 +68,7 @@
68
obs;
69
70
// Define a new observer
71
- if (typeof MutationObserver !== 'undefined') {
+ if (MutationObserver !== undefined) {
72
obs = new MutationObserver(function (mutations) {
73
var datalistNeedsAnUpdate = false;
74
@@ -370,7 +370,7 @@
370
371
// Function for preparing and sorting the options/suggestions
372
var prepOptions = function (datalist, input) {
373
- if (typeof obs !== 'undefined') {
+ if (obs !== undefined) {
374
obs.disconnect();
375
}
376
@@ -448,7 +448,7 @@
448
disabledValues
449
);
450
451
452
obs.observe(datalist, {
453
childList: true,
454
});
0 commit comments