Skip to content

Commit

Permalink
build for v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmalonenz committed Apr 27, 2018
1 parent 0e54aeb commit cd26802
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/amd/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ define(['exports', 'aurelia-dependency-injection', './touchy', './options', './u
if (!this.dragging) {
return;
}

if (this._initialSibling.nodeName === '#comment' && this._initialSibling.data === 'anchor') {
forceIgnoreRevert = false;
}
var reverts = arguments.length > 0 ? revert : this.options.revertOnSpill;
var item = this._copy || this._item;
var parent = _util.Util.getParent(item);
Expand Down
5 changes: 5 additions & 0 deletions dist/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,11 @@ export class Dragula {
if (!this.dragging) {
return;
}
// If the initial sibling is the Aurelia <!--anchor--> node, then we have to
// re-render on Aurelia's behalf.
if (this._initialSibling.nodeName === '#comment' && this._initialSibling.data === 'anchor') {
forceIgnoreRevert = false;
}
let reverts = arguments.length > 0 ? revert : this.options.revertOnSpill;
let item = this._copy || this._item;
let parent = Util.getParent(item);
Expand Down
4 changes: 4 additions & 0 deletions dist/commonjs/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ var Dragula = exports.Dragula = function () {
if (!this.dragging) {
return;
}

if (this._initialSibling.nodeName === '#comment' && this._initialSibling.data === 'anchor') {
forceIgnoreRevert = false;
}
var reverts = arguments.length > 0 ? revert : this.options.revertOnSpill;
var item = this._copy || this._item;
var parent = _util.Util.getParent(item);
Expand Down
4 changes: 4 additions & 0 deletions dist/es2015/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ export let Dragula = class Dragula {
if (!this.dragging) {
return;
}

if (this._initialSibling.nodeName === '#comment' && this._initialSibling.data === 'anchor') {
forceIgnoreRevert = false;
}
let reverts = arguments.length > 0 ? revert : this.options.revertOnSpill;
let item = this._copy || this._item;
let parent = Util.getParent(item);
Expand Down
4 changes: 4 additions & 0 deletions dist/system/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ System.register(['aurelia-dependency-injection', './touchy', './options', './uti
if (!this.dragging) {
return;
}

if (this._initialSibling.nodeName === '#comment' && this._initialSibling.data === 'anchor') {
forceIgnoreRevert = false;
}
var reverts = arguments.length > 0 ? revert : this.options.revertOnSpill;
var item = this._copy || this._item;
var parent = Util.getParent(item);
Expand Down
4 changes: 4 additions & 0 deletions dist/temp/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ var Dragula = exports.Dragula = function () {
if (!this.dragging) {
return;
}

if (this._initialSibling.nodeName === '#comment' && this._initialSibling.data === 'anchor') {
forceIgnoreRevert = false;
}
var reverts = arguments.length > 0 ? revert : this.options.revertOnSpill;
var item = this._copy || this._item;
var parent = Util.getParent(item);
Expand Down

0 comments on commit cd26802

Please sign in to comment.