chore: hasOwn polyfill

This commit is contained in:
Tristan Yang
2025-02-13 12:03:54 +08:00
parent 9a798849d4
commit d5d3a67a4d
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -9,10 +9,12 @@ if (!isSupported) {
let place = ratio <= 0 && centerIfNeeded ? "center" : "nearest";
el.scrollIntoView({
block: place,
inline: place
inline: place,
});
}
this.disconnect();
}).observe(this);
};
}
// hasown API
"hasOwn" in Object || (Object.hasOwn = Object.call.bind(Object.hasOwnProperty));