Skip to content

Commit

Permalink
Release 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Astray-git committed Jul 21, 2016
1 parent 7549d2d commit 7a7bae7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dist/vue-dragula.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-dragula v1.0.3
* vue-dragula v1.0.5
* (c) 2016 Yichang Liu
* Released under the MIT License.
*/
Expand Down Expand Up @@ -95,12 +95,13 @@
var dragIndex = void 0;
var dropIndex = void 0;
var sourceModel = void 0;
drake.on('remove', function (el, source) {
drake.on('remove', function (el, container, source) {
if (!drake.models) {
return;
}
sourceModel = drake.models[drake.containers.indexOf(source)];
sourceModel.splice(dragIndex, 1);
drake.cancel(true);
_this2.eventBus.$emit('removeModel', [name, el, source]);
});
drake.on('drag', function (el, source) {
Expand All @@ -125,6 +126,7 @@
sourceModel.splice(dragIndex, 1);
}
targetModel.splice(dropIndex, 0, dropElmModel);
drake.cancel(true);
}
_this2.eventBus.$emit('dropModel', [name, dropElm, target, source]);
});
Expand Down
4 changes: 2 additions & 2 deletions dist/vue-dragula.min.js

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,6 +1,6 @@
{
"name": "vue-dragula",
"version": "1.0.4",
"version": "1.0.5",
"description": "Vue wrapper for dragula",
"main": "dist/vue-dragula.js",
"files": [
Expand Down

0 comments on commit 7a7bae7

Please sign in to comment.