Skip to content

Commit 2967e08

Browse files
committed
fix set option
1 parent c70aada commit 2967e08

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
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.1
2+
* vue-dragula v1.0.2
33
* (c) 2016 Yichang Liu
44
* Released under the MIT License.
55
*/
@@ -181,7 +181,7 @@
181181
var drake = void 0;
182182

183183
Vue.vueDragula = {
184-
options: service.setOptions,
184+
options: service.setOptions.bind(service),
185185
eventBus: service.eventBus
186186
};
187187

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.

example/example.build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10121,7 +10121,7 @@
1012110121
/***/ function(module, exports, __webpack_require__) {
1012210122

1012310123
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
10124-
* vue-dragula v1.0.0
10124+
* vue-dragula v1.0.2
1012510125
* (c) 2016 Yichang Liu
1012610126
* Released under the MIT License.
1012710127
*/
@@ -10259,7 +10259,7 @@
1025910259
if (!bag) {
1026010260
return;
1026110261
}
10262-
var bagIndex = this.bag.indexOf(bag);
10262+
var bagIndex = this.bags.indexOf(bag);
1026310263
this.bags.splice(bagIndex, 1);
1026410264
bag.drake.destroy();
1026510265
}
@@ -10303,7 +10303,7 @@
1030310303
var drake = void 0;
1030410304

1030510305
Vue.vueDragula = {
10306-
options: service.setOptions,
10306+
options: service.setOptions.bind(service),
1030710307
eventBus: service.eventBus
1030810308
};
1030910309

src/vue-dragula.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function (Vue) {
1212
let drake
1313

1414
Vue.vueDragula = {
15-
options: service.setOptions,
15+
options: service.setOptions.bind(service),
1616
eventBus: service.eventBus
1717
}
1818

0 commit comments

Comments
 (0)