Skip to content

Commit

Permalink
Removes Vue scope dependency. Closes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Reyes committed Dec 13, 2017
1 parent 31119f7 commit ef73989
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.1
* Use local nextTick reference, deleting Vue scope dependency.
* Fix null attribute bug in date picker.

## 0.4.0
* Fix weekday labels not always having same exact width
* Add support for complex attribute dates. Closes #7 and #12.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v-calendar",
"version": "0.4.0",
"version": "0.4.1",
"description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.",
"keywords": [
"vue",
Expand Down
2 changes: 1 addition & 1 deletion src/components/DateRangePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
};
},
attributes_() {
const attributes = [...this.attributes];
const attributes = [...(this.attributes || [])];
if (this.dragAttribute_) attributes.push(this.dragAttribute_);
else if (this.selectAttribute_) attributes.push(this.selectAttribute_);
if (this.disabledAttribute) attributes.push(this.disabledAttribute);
Expand Down
2 changes: 1 addition & 1 deletion src/components/MultipleDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
};
},
attributes_() {
const attributes = [...this.attributes];
const attributes = [...(this.attributes || [])];
if (this.selectAttribute_) attributes.push(this.selectAttribute_);
if (this.disabledAttribute) attributes.push(this.disabledAttribute);
return attributes;
Expand Down
2 changes: 1 addition & 1 deletion src/components/SingleDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
};
},
attributes_() {
const attributes = [...this.attributes];
const attributes = [...(this.attributes || [])];
if (this.selectAttribute_) attributes.push(this.selectAttribute_);
if (this.disabledAttribute) attributes.push(this.disabledAttribute);
return attributes;
Expand Down

0 comments on commit ef73989

Please sign in to comment.