Skip to content

Commit

Permalink
v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmalonenz committed Sep 6, 2017
1 parent 1cda772 commit 35efb43
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions dist/amd/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency-
invalid: this._invalid.bind(this)
};

var options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new _dragula.Dragula(options);
this.options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new _dragula.Dragula(this.options);

this.dragula.on('drop', this._dropFunction.bind(this));

Expand Down Expand Up @@ -69,7 +69,7 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency-
};

DragulaAndDrop.prototype._dropFunction = function _dropFunction(item, target, source, sibling, itemVM, siblingVM) {
this.dragula.cancel();
this.dragula.cancel(this.options.revertOnSpill, true);
if (typeof this.dropFn === 'function') this.dropFn({ item: item, target: target, source: source, sibling: sibling, itemVM: itemVM, siblingVM: siblingVM });
};

Expand Down
6 changes: 3 additions & 3 deletions dist/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export class DragulaAndDrop {
invalid: this._invalid.bind(this)
};

let options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new Dragula(options);
this.options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new Dragula(this.options);

this.dragula.on('drop', this._dropFunction.bind(this));

Expand Down Expand Up @@ -122,7 +122,7 @@ export class DragulaAndDrop {
}

_dropFunction(item, target, source, sibling, itemVM, siblingVM) {
this.dragula.cancel();
this.dragula.cancel(this.options.revertOnSpill, true);
if (typeof this.dropFn === 'function')
this.dropFn({ item, target, source, sibling, itemVM, siblingVM });
}
Expand Down
6 changes: 3 additions & 3 deletions dist/commonjs/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
invalid: this._invalid.bind(this)
};

var options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new _dragula.Dragula(options);
this.options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new _dragula.Dragula(this.options);

this.dragula.on('drop', this._dropFunction.bind(this));

Expand Down Expand Up @@ -76,7 +76,7 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
};

DragulaAndDrop.prototype._dropFunction = function _dropFunction(item, target, source, sibling, itemVM, siblingVM) {
this.dragula.cancel();
this.dragula.cancel(this.options.revertOnSpill, true);
if (typeof this.dropFn === 'function') this.dropFn({ item: item, target: target, source: source, sibling: sibling, itemVM: itemVM, siblingVM: siblingVM });
};

Expand Down
6 changes: 3 additions & 3 deletions dist/es2015/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode
invalid: this._invalid.bind(this)
};

let options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new Dragula(options);
this.options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new Dragula(this.options);

this.dragula.on('drop', this._dropFunction.bind(this));

Expand Down Expand Up @@ -60,7 +60,7 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode
}

_dropFunction(item, target, source, sibling, itemVM, siblingVM) {
this.dragula.cancel();
this.dragula.cancel(this.options.revertOnSpill, true);
if (typeof this.dropFn === 'function') this.dropFn({ item, target, source, sibling, itemVM, siblingVM });
}

Expand Down
6 changes: 3 additions & 3 deletions dist/system/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in
invalid: this._invalid.bind(this)
};

var options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new Dragula(options);
this.options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new Dragula(this.options);

this.dragula.on('drop', this._dropFunction.bind(this));

Expand Down Expand Up @@ -84,7 +84,7 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in
};

DragulaAndDrop.prototype._dropFunction = function _dropFunction(item, target, source, sibling, itemVM, siblingVM) {
this.dragula.cancel();
this.dragula.cancel(this.options.revertOnSpill, true);
if (typeof this.dropFn === 'function') this.dropFn({ item: item, target: target, source: source, sibling: sibling, itemVM: itemVM, siblingVM: siblingVM });
};

Expand Down
6 changes: 3 additions & 3 deletions dist/temp/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
invalid: this._invalid.bind(this)
};

var options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new Dragula(options);
this.options = Object.assign(aureliaOptions, boundOptions);
this.dragula = new Dragula(this.options);

this.dragula.on('drop', this._dropFunction.bind(this));

Expand Down Expand Up @@ -122,7 +122,7 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
};

DragulaAndDrop.prototype._dropFunction = function _dropFunction(item, target, source, sibling, itemVM, siblingVM) {
this.dragula.cancel();
this.dragula.cancel(this.options.revertOnSpill, true);
if (typeof this.dropFn === 'function') this.dropFn({ item: item, target: target, source: source, sibling: sibling, itemVM: itemVM, siblingVM: siblingVM });
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-dragula",
"version": "1.4.4",
"version": "1.5.0",
"description": "An aurelia compatible version of Dragula",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 35efb43

Please sign in to comment.