Skip to content

Commit

Permalink
1.15.5
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Nov 27, 2024
1 parent a81251f commit 104d731
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 37 deletions.
17 changes: 9 additions & 8 deletions Sortable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Sortable 1.15.4
* Sortable 1.15.5
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
Expand Down Expand Up @@ -134,7 +134,7 @@
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

var version = "1.15.4";
var version = "1.15.5";

function userAgent(pattern) {
if (typeof window !== 'undefined' && window.navigator) {
Expand Down Expand Up @@ -1414,13 +1414,13 @@
on(rootEl, 'dragstart', this._onDragStart);
}
try {
_nextTick(function () {
if (document.selection) {
if (document.selection) {
_nextTick(function () {
document.selection.empty();
} else {
window.getSelection().removeAllRanges();
}
});
});
} else if (this.nativeDraggable) {
window.getSelection().removeAllRanges();
}
} catch (err) {}
},
_dragStarted: function _dragStarted(fallback, evt) {
Expand Down Expand Up @@ -1636,6 +1636,7 @@
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
on(document, 'selectstart', _this);
moved = true;
window.getSelection().removeAllRanges();
if (Safari) {
css(document.body, 'user-select', 'none');
}
Expand Down
4 changes: 2 additions & 2 deletions Sortable.min.js

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions modular/sortable.complete.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Sortable 1.15.4
* Sortable 1.15.5
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
Expand Down Expand Up @@ -128,7 +128,7 @@ function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

var version = "1.15.4";
var version = "1.15.5";

function userAgent(pattern) {
if (typeof window !== 'undefined' && window.navigator) {
Expand Down Expand Up @@ -1408,13 +1408,13 @@ Sortable.prototype = /** @lends Sortable.prototype */{
on(rootEl, 'dragstart', this._onDragStart);
}
try {
_nextTick(function () {
if (document.selection) {
if (document.selection) {
_nextTick(function () {
document.selection.empty();
} else {
window.getSelection().removeAllRanges();
}
});
});
} else if (this.nativeDraggable) {
window.getSelection().removeAllRanges();
}
} catch (err) {}
},
_dragStarted: function _dragStarted(fallback, evt) {
Expand Down Expand Up @@ -1630,6 +1630,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
on(document, 'selectstart', _this);
moved = true;
window.getSelection().removeAllRanges();
if (Safari) {
css(document.body, 'user-select', 'none');
}
Expand Down
17 changes: 9 additions & 8 deletions modular/sortable.core.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Sortable 1.15.4
* Sortable 1.15.5
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
Expand Down Expand Up @@ -128,7 +128,7 @@ function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

var version = "1.15.4";
var version = "1.15.5";

function userAgent(pattern) {
if (typeof window !== 'undefined' && window.navigator) {
Expand Down Expand Up @@ -1408,13 +1408,13 @@ Sortable.prototype = /** @lends Sortable.prototype */{
on(rootEl, 'dragstart', this._onDragStart);
}
try {
_nextTick(function () {
if (document.selection) {
if (document.selection) {
_nextTick(function () {
document.selection.empty();
} else {
window.getSelection().removeAllRanges();
}
});
});
} else if (this.nativeDraggable) {
window.getSelection().removeAllRanges();
}
} catch (err) {}
},
_dragStarted: function _dragStarted(fallback, evt) {
Expand Down Expand Up @@ -1630,6 +1630,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
on(document, 'selectstart', _this);
moved = true;
window.getSelection().removeAllRanges();
if (Safari) {
css(document.body, 'user-select', 'none');
}
Expand Down
17 changes: 9 additions & 8 deletions modular/sortable.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Sortable 1.15.4
* Sortable 1.15.5
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
Expand Down Expand Up @@ -128,7 +128,7 @@ function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

var version = "1.15.4";
var version = "1.15.5";

function userAgent(pattern) {
if (typeof window !== 'undefined' && window.navigator) {
Expand Down Expand Up @@ -1408,13 +1408,13 @@ Sortable.prototype = /** @lends Sortable.prototype */{
on(rootEl, 'dragstart', this._onDragStart);
}
try {
_nextTick(function () {
if (document.selection) {
if (document.selection) {
_nextTick(function () {
document.selection.empty();
} else {
window.getSelection().removeAllRanges();
}
});
});
} else if (this.nativeDraggable) {
window.getSelection().removeAllRanges();
}
} catch (err) {}
},
_dragStarted: function _dragStarted(fallback, evt) {
Expand Down Expand Up @@ -1630,6 +1630,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
on(document, 'selectstart', _this);
moved = true;
window.getSelection().removeAllRanges();
if (Safari) {
css(document.body, 'user-select', 'none');
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sortablejs",
"exportName": "Sortable",
"version": "1.15.4",
"version": "1.15.5",
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/plugin-transform-object-assign": "^7.2.0",
Expand Down

0 comments on commit 104d731

Please sign in to comment.