Skip to content

Commit

Permalink
v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmalonenz committed Jan 16, 2017
1 parent 5a1bb1d commit 1549ba6
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions dist/amd/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency-
if (typeof _this.dragEndFn === 'function') _this.dragEndFn({ item: item, itemVM: itemVM });
});

this.dragula.on('cloned', function (copy, item, itemVM) {
if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, itemVM: itemVM });
this.dragula.on('cloned', function (copy, item, type, itemVM) {
if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, type: type, itemVM: itemVM });
});

this.dragula.on('over', function (item, target, source, itemVM) {
Expand Down
22 changes: 11 additions & 11 deletions dist/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,32 +87,32 @@ export class DragulaAndDrop {

this.dragula.on('drag', (item, source, itemVM) => {
if (typeof this.dragFn === 'function')
this.dragFn({ item: item, source: source, itemVM: itemVM });
this.dragFn({ item, source, itemVM });
});

this.dragula.on('dragend', (item, itemVM) => {
if (typeof this.dragEndFn === 'function')
this.dragEndFn({ item: item, itemVM: itemVM });
this.dragEndFn({ item, itemVM });
});

this.dragula.on('cloned', (copy, item, itemVM) => {
this.dragula.on('cloned', (copy, item, type, itemVM) => {
if (typeof this.clonedFn === 'function')
this.clonedFn({ copy: copy, item: item, itemVM: itemVM });
this.clonedFn({ copy, item, type, itemVM });
});

this.dragula.on('over', (item, target, source, itemVM) => {
if (typeof this.overFn === 'function')
this.overFn({ item: item, target: target, source: source, itemVM: itemVM });
this.overFn({ item, target, source, itemVM });
});

this.dragula.on('out', (item, target, source, itemVM) => {
if (typeof this.outFn === 'function')
this.outFn({ item: item, target: target, source: source, itemVM: itemVM });
this.outFn({ item, target, source, itemVM });
});

this.dragula.on('shadow', (item, target, source, itemVM) => {
if (typeof this.shadowFn === 'function')
this.shadowFn({ item: item, target: target, source: source, itemVM: itemVM });
this.shadowFn({ item, target, source, itemVM });
});
}

Expand All @@ -123,7 +123,7 @@ export class DragulaAndDrop {
_dropFunction(item, target, source, sibling, itemVM, siblingVM) {
this.dragula.cancel();
if (typeof this.dropFn === 'function')
this.dropFn({ item: item, target: target, source: source, sibling: sibling, itemVM: itemVM, siblingVM: siblingVM });
this.dropFn({ item, target, source, sibling, itemVM, siblingVM });
}

_isContainer(el) {
Expand All @@ -142,7 +142,7 @@ export class DragulaAndDrop {

_moves(item, source, handle, sibling) {
if (typeof this.moves === 'function') {
return this.moves({ item: item, source: source, handle: handle, sibling: sibling });
return this.moves({ item, source, handle, sibling });
}
else {
return this.globalOptions.moves(item, source, handle, sibling);
Expand All @@ -151,7 +151,7 @@ export class DragulaAndDrop {

_accepts(item, target, source, sibling) {
if (typeof this.accepts === 'function') {
return this.accepts({ item: item, target: target, source: source, sibling: sibling });
return this.accepts({ item, target, source, sibling });
}
else {
return this.globalOptions.accepts(item, target, source, sibling);
Expand All @@ -160,7 +160,7 @@ export class DragulaAndDrop {

_invalid(item, handle) {
if (typeof this.invalid === 'function') {
return this.invalid({ item: item, handle: handle });
return this.invalid({ item, handle });
}
else {
return this.globalOptions.invalid(item, handle);
Expand Down
4 changes: 2 additions & 2 deletions dist/commonjs/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
if (typeof _this.dragEndFn === 'function') _this.dragEndFn({ item: item, itemVM: itemVM });
});

this.dragula.on('cloned', function (copy, item, itemVM) {
if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, itemVM: itemVM });
this.dragula.on('cloned', function (copy, item, type, itemVM) {
if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, type: type, itemVM: itemVM });
});

this.dragula.on('over', function (item, target, source, itemVM) {
Expand Down
22 changes: 11 additions & 11 deletions dist/es2015/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,27 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode
this.dragula.on('drop', this._dropFunction.bind(this));

this.dragula.on('drag', (item, source, itemVM) => {
if (typeof this.dragFn === 'function') this.dragFn({ item: item, source: source, itemVM: itemVM });
if (typeof this.dragFn === 'function') this.dragFn({ item, source, itemVM });
});

this.dragula.on('dragend', (item, itemVM) => {
if (typeof this.dragEndFn === 'function') this.dragEndFn({ item: item, itemVM: itemVM });
if (typeof this.dragEndFn === 'function') this.dragEndFn({ item, itemVM });
});

this.dragula.on('cloned', (copy, item, itemVM) => {
if (typeof this.clonedFn === 'function') this.clonedFn({ copy: copy, item: item, itemVM: itemVM });
this.dragula.on('cloned', (copy, item, type, itemVM) => {
if (typeof this.clonedFn === 'function') this.clonedFn({ copy, item, type, itemVM });
});

this.dragula.on('over', (item, target, source, itemVM) => {
if (typeof this.overFn === 'function') this.overFn({ item: item, target: target, source: source, itemVM: itemVM });
if (typeof this.overFn === 'function') this.overFn({ item, target, source, itemVM });
});

this.dragula.on('out', (item, target, source, itemVM) => {
if (typeof this.outFn === 'function') this.outFn({ item: item, target: target, source: source, itemVM: itemVM });
if (typeof this.outFn === 'function') this.outFn({ item, target, source, itemVM });
});

this.dragula.on('shadow', (item, target, source, itemVM) => {
if (typeof this.shadowFn === 'function') this.shadowFn({ item: item, target: target, source: source, itemVM: itemVM });
if (typeof this.shadowFn === 'function') this.shadowFn({ item, target, source, itemVM });
});
}

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

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

_isContainer(el) {
Expand All @@ -79,23 +79,23 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode

_moves(item, source, handle, sibling) {
if (typeof this.moves === 'function') {
return this.moves({ item: item, source: source, handle: handle, sibling: sibling });
return this.moves({ item, source, handle, sibling });
} else {
return this.globalOptions.moves(item, source, handle, sibling);
}
}

_accepts(item, target, source, sibling) {
if (typeof this.accepts === 'function') {
return this.accepts({ item: item, target: target, source: source, sibling: sibling });
return this.accepts({ item, target, source, sibling });
} else {
return this.globalOptions.accepts(item, target, source, sibling);
}
}

_invalid(item, handle) {
if (typeof this.invalid === 'function') {
return this.invalid({ item: item, handle: handle });
return this.invalid({ item, handle });
} else {
return this.globalOptions.invalid(item, handle);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/system/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in
if (typeof _this.dragEndFn === 'function') _this.dragEndFn({ item: item, itemVM: itemVM });
});

this.dragula.on('cloned', function (copy, item, itemVM) {
if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, itemVM: itemVM });
this.dragula.on('cloned', function (copy, item, type, itemVM) {
if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, type: type, itemVM: itemVM });
});

this.dragula.on('over', function (item, target, source, itemVM) {
Expand Down
4 changes: 2 additions & 2 deletions dist/temp/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
if (typeof _this.dragEndFn === 'function') _this.dragEndFn({ item: item, itemVM: itemVM });
});

this.dragula.on('cloned', function (copy, item, itemVM) {
if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, itemVM: itemVM });
this.dragula.on('cloned', function (copy, item, type, itemVM) {
if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, type: type, itemVM: itemVM });
});

this.dragula.on('over', function (item, target, source, itemVM) {
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.3.2",
"version": "1.3.3",
"description": "An aurelia compatible version of Dragula",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 1549ba6

Please sign in to comment.