Skip to content

Commit

Permalink
fix destroy, version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Astray-git committed May 3, 2016
1 parent 3f3279a commit bf46f19
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 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.0
* vue-dragula v1.0.1
* (c) 2016 Yichang Liu
* Released under the MIT License.
*/
Expand Down Expand Up @@ -137,7 +137,7 @@
if (!bag) {
return;
}
var bagIndex = this.bag.indexOf(bag);
var bagIndex = this.bags.indexOf(bag);
this.bags.splice(bagIndex, 1);
bag.drake.destroy();
}
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.0",
"version": "1.0.1",
"description": "Vue wrapper for dragula",
"main": "dist/vue-dragula.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class DragulaService {
destroy (name) {
let bag = this.find(name)
if (!bag) { return }
let bagIndex = this.bag.indexOf(bag)
let bagIndex = this.bags.indexOf(bag)
this.bags.splice(bagIndex, 1)
bag.drake.destroy()
}
Expand Down

0 comments on commit bf46f19

Please sign in to comment.