Skip to content

Commit bf46f19

Browse files
committed
fix destroy, version 1.0.1
1 parent 3f3279a commit bf46f19

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/vue-dragula.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-dragula v1.0.0
2+
* vue-dragula v1.0.1
33
* (c) 2016 Yichang Liu
44
* Released under the MIT License.
55
*/
@@ -137,7 +137,7 @@
137137
if (!bag) {
138138
return;
139139
}
140-
var bagIndex = this.bag.indexOf(bag);
140+
var bagIndex = this.bags.indexOf(bag);
141141
this.bags.splice(bagIndex, 1);
142142
bag.drake.destroy();
143143
}

dist/vue-dragula.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-dragula",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Vue wrapper for dragula",
55
"main": "dist/vue-dragula.js",
66
"files": [

src/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class DragulaService {
9898
destroy (name) {
9999
let bag = this.find(name)
100100
if (!bag) { return }
101-
let bagIndex = this.bag.indexOf(bag)
101+
let bagIndex = this.bags.indexOf(bag)
102102
this.bags.splice(bagIndex, 1)
103103
bag.drake.destroy()
104104
}

0 commit comments

Comments
 (0)