Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix : instanceOf returns false #1273

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/js/splide-renderer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/splide-renderer.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/splide.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
* Splide.js
* Version : 4.1.4
* License : MIT
* Copyright: 2022 Naotoshi Fujita
* Copyright: 2024 Naotoshi Fujita
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Splide = factory());
Expand Down Expand Up @@ -70,7 +70,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d

function isHTMLElement(subject) {
try {
return subject instanceof (subject.ownerDocument.defaultView || window).HTMLElement;
if (subject instanceof subject.ownerDocument.defaultView.HTMLElement) return true;else if (subject instanceof window.top.HTMLElement) return true;
} catch (e) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/js/splide.min.js

Large diffs are not rendered by default.

Binary file modified dist/js/splide.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/js/splide.min.js.map

Large diffs are not rendered by default.

Loading