Skip to content

Commit c388b6c

Browse files
styling code
1 parent 198376c commit c388b6c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/vuedraggable.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ function delegateAndEmit(evtName) {
4040
};
4141
}
4242

43-
const isTransitionName = (name) => ["transition-group", "TransitionGroup"].includes(name);
43+
function isTransitionName(name) {
44+
return ["transition-group", "TransitionGroup"].includes(name);
45+
}
4446

4547
function isTransition(slots) {
4648
if (!slots || slots.length !== 1) {
@@ -301,13 +303,13 @@ const draggableComponent = {
301303
return { index, element };
302304
},
303305

304-
getUnderlyingPotencialDraggableComponent({ __vue__ : vue }) {
306+
getUnderlyingPotencialDraggableComponent({ __vue__: vue }) {
305307
if (
306308
!vue ||
307309
!vue.$options ||
308310
!isTransitionName(vue.$options._componentTag)
309311
) {
310-
if (!("realList" in vue) && (vue.$children.length ===1) && ("realList" in vue.$children[0]))
312+
if (!("realList" in vue) && (vue.$children.length === 1) && ("realList" in vue.$children[0]))
311313
return vue.$children[0];
312314

313315
return vue;

0 commit comments

Comments
 (0)