Skip to content

Commit c615452

Browse files
committed
prevent automatically initialising a default gallery instance
1 parent f2ae4c4 commit c615452

File tree

10 files changed

+3882
-457
lines changed

10 files changed

+3882
-457
lines changed

dist/gridstack-gallery.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/gridstack-gallery.iife.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gridstack-gallery.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,10 +1983,13 @@ function Ct(d) {
19831983
return d;
19841984
}
19851985
function Nt(d) {
1986-
return et.GridStack.init({
1987-
disableOneColumnMode: !0,
1988-
margin: "1px"
1989-
}, d.selector);
1986+
return et.GridStack.init(
1987+
{
1988+
disableOneColumnMode: !0,
1989+
margin: "1px"
1990+
},
1991+
d.selector
1992+
);
19901993
}
19911994
function Ht(d, t) {
19921995
const e = d.batchUpdate();
@@ -2019,7 +2022,7 @@ function zt(d) {
20192022
});
20202023
});
20212024
}
2022-
typeof window !== void 0 && Ot();
2025+
typeof window !== void 0 && (window.GridStackGallery = Ot);
20232026
export {
20242027
Ot as default
20252028
};

dist/gridstack-gallery.umd.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@
3030
]
3131
</script>
3232
<script type="module" src="/src/main.ts"></script>
33-
<script type="text/javascript"></script>
3433
</body>
3534
</html>

0 commit comments

Comments
 (0)