Skip to content

Commit

Permalink
feat(plugins): convert slick.draggablegrouping to vanillaJS (#744)
Browse files Browse the repository at this point in the history
- fix ESLint for Cypress
- also remove jQuery from package.json list of dependencies
  • Loading branch information
ghiscoding committed Jul 8, 2023
1 parent e4aac58 commit 737ffd1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions slick.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,24 @@

function noop() { }

function emptyElement(element) {
if (element && element.firstChild) {
while (element.firstChild) {
if (element.lastChild) {
element.removeChild(element.lastChild);
}
}
}
return element;
}

function isEmptyObject(obj) {
if (obj === null || obj === undefined) {
return true;
}
return Object.entries(obj).length === 0;
}

function offset(el) {
if (!el || !el.getBoundingClientRect) {
return undefined;
Expand Down

0 comments on commit 737ffd1

Please sign in to comment.