Skip to content

Commit

Permalink
fix for undefined group option
Browse files Browse the repository at this point in the history
  • Loading branch information
pc-david\david.desmaisons committed Mar 9, 2017
1 parent f5f31a3 commit 923ca01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/vuedraggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
return this.transitionMode ? this.$el.children[0] : this.$el;
},
isCloning: function isCloning() {
return !!this.options && this.options.group !== null && this.options.group.pull === 'clone';
return !!this.options && !!this.options.group && this.options.group.pull === 'clone';
},
realList: function realList() {
return !!this.list ? this.list : this.value;
Expand Down
2 changes: 1 addition & 1 deletion dist/vuedraggable.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": "vuedraggable",
"version": "2.8.6",
"version": "2.9.0",
"description": "draggable component for vue",
"main": "dist/vuedraggable.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/vuedraggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
},

isCloning () {
return (!!this.options) && (this.options.group !== null) && (this.options.group !== undefined) && (this.options.group.pull === 'clone')
return (!!this.options) && (!!this.options.group !== null) && (this.options.group.pull === 'clone')
},

realList () {
Expand Down

0 comments on commit 923ca01

Please sign in to comment.