Skip to content

Commit

Permalink
Release 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Astray-git committed Jun 28, 2016
1 parent fcfde02 commit 0378065
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion dist/vue-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,23 @@
}
},
unbind: function unbind() {
service.destroy(name);
var container = this.el;
var unbindBagName = 'globalBag';
var bagName = this.params.bag;
if (bagName !== undefined && bagName.length !== 0) {
unbindBagName = bagName;
}
var drake = service.find(unbindBagName).drake;
if (!drake) {
return;
}
var containerIndex = drake.containers.indexOf(container);
if (containerIndex > -1) {
drake.containers.splice(containerIndex, 1);
}
if (drake.containers.length === 0) {
service.destroy(unbindBagName);
}
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion 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.3",
"version": "1.0.4",
"description": "Vue wrapper for dragula",
"main": "dist/vue-dragula.js",
"files": [
Expand Down

0 comments on commit 0378065

Please sign in to comment.