Skip to content

Commit a8836d5

Browse files
committed
#1580: Fix plugins' references to options
1 parent 705fb32 commit a8836d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/AutoScroll/AutoScroll.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function AutoScrollPlugin() {
107107
// MACOS Safari does not have autoscroll,
108108
// Firefox and Chrome are good
109109
if (fallback || Edge || IE11OrLess || Safari) {
110-
autoScroll(evt, this.options, elem, fallback);
110+
autoScroll(evt, this.sortable.options, elem, fallback);
111111

112112
// Listener for pointer element change
113113
let ogElemScroller = getParentAutoScrollElement(elem, true);
@@ -127,7 +127,7 @@ function AutoScrollPlugin() {
127127
ogElemScroller = newElem;
128128
clearAutoScrolls();
129129
}
130-
autoScroll(evt, this.options, newElem, fallback);
130+
autoScroll(evt, this.sortable.options, newElem, fallback);
131131
}, 10);
132132
lastAutoScrollX = x;
133133
lastAutoScrollY = y;
@@ -138,7 +138,7 @@ function AutoScrollPlugin() {
138138
clearAutoScrolls();
139139
return;
140140
}
141-
autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
141+
autoScroll(evt, this.sortable.options, getParentAutoScrollElement(elem, false), false);
142142
}
143143
}
144144
};

plugins/MultiDrag/MultiDrag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ function MultiDragPlugin() {
375375
// Do not "unfold" after around dragEl if reverted
376376
if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {
377377
let dragRect = getRect(dragEl),
378-
multiDragIndex = index(dragEl, ':not(.' + this.options.selectedClass + ')');
378+
multiDragIndex = index(dragEl, ':not(.' + sortable.options.selectedClass + ')');
379379

380380
if (!initialFolding && options.animation) dragEl.thisAnimationDuration = null;
381381

0 commit comments

Comments
 (0)