Skip to content

Commit ef73989

Browse files
author
Nathan Reyes
committed
Removes Vue scope dependency. Closes #23
1 parent 31119f7 commit ef73989

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.1
2+
* Use local nextTick reference, deleting Vue scope dependency.
3+
* Fix null attribute bug in date picker.
4+
15
## 0.4.0
26
* Fix weekday labels not always having same exact width
37
* Add support for complex attribute dates. Closes #7 and #12.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "v-calendar",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.",
55
"keywords": [
66
"vue",

src/components/DateRangePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default {
5656
};
5757
},
5858
attributes_() {
59-
const attributes = [...this.attributes];
59+
const attributes = [...(this.attributes || [])];
6060
if (this.dragAttribute_) attributes.push(this.dragAttribute_);
6161
else if (this.selectAttribute_) attributes.push(this.selectAttribute_);
6262
if (this.disabledAttribute) attributes.push(this.disabledAttribute);

src/components/MultipleDatePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default {
3333
};
3434
},
3535
attributes_() {
36-
const attributes = [...this.attributes];
36+
const attributes = [...(this.attributes || [])];
3737
if (this.selectAttribute_) attributes.push(this.selectAttribute_);
3838
if (this.disabledAttribute) attributes.push(this.disabledAttribute);
3939
return attributes;

src/components/SingleDatePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default {
3333
};
3434
},
3535
attributes_() {
36-
const attributes = [...this.attributes];
36+
const attributes = [...(this.attributes || [])];
3737
if (this.selectAttribute_) attributes.push(this.selectAttribute_);
3838
if (this.disabledAttribute) attributes.push(this.disabledAttribute);
3939
return attributes;

0 commit comments

Comments
 (0)