Skip to content

Commit 315e358

Browse files
allow undefined option
1 parent b8cdf8b commit 315e358

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/vuedraggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
122122
return this.transitionMode ? this.$el.children[0] : this.$el;
123123
},
124124
isCloning: function isCloning() {
125-
return this.options !== null && this.options.group !== null && this.options.group.pull === 'clone';
125+
return !!this.options && this.options.group !== null && this.options.group.pull === 'clone';
126126
}
127127
},
128128

dist/vuedraggable.min.js

Lines changed: 1 addition & 1 deletion
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": "vuedraggable",
3-
"version": "2.8.4",
3+
"version": "2.8.5",
44
"description": "draggable component for vue",
55
"main": "dist/vuedraggable.js",
66
"files": [

src/vuedraggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
},
106106

107107
isCloning () {
108-
return (this.options!==null) && (this.options.group !== null) && (this.options.group.pull === 'clone')
108+
return (!!this.options) && (this.options.group !== null) && (this.options.group.pull === 'clone')
109109
}
110110
},
111111

0 commit comments

Comments
 (0)