Skip to content

Commit

Permalink
Fixed merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
euvl committed Oct 20, 2019
1 parent 5813cf9 commit 59c8fb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/Notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,12 @@ const Component = {
? event.speed
: this.speed
let { title, text, type, data, id, ignoreDuplicates } = event
const ignoreDuplicates = typeof ignoreDuplicates === 'boolean'
? ignoreDuplicates
const ignoreDuplicates = typeof event.ignoreDuplicates === 'boolean'
? event.ignoreDuplicates
: this.ignoreDuplicates
let { title, text, type, data, id } = event
const item = {
id: id || Id(),
title,
Expand All @@ -258,7 +257,10 @@ const Component = {
let indexToDestroy = -1
const isDuplicate = Boolean(this.active.find(item => item.title === event.title && item.text === event.text));
const isDuplicate = this.active.some(item => {
return item.title === event.title && item.text === event.text
});
const canAdd = ignoreDuplicates ? !isDuplicate : true;
if (!canAdd) return;
Expand Down Expand Up @@ -297,9 +299,7 @@ const Component = {
notifyWrapperStyle (item) {
return this.isVA
? null
: {
transition: `all ${item.speed}ms`
}
: { transition: `all ${item.speed}ms` }
},
destroy (item) {
Expand Down
2 changes: 1 addition & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const types = [
regexp: new RegExp(`^${floatRegexp}%$`)
},
/**
* Fallback optopn
* Fallback option
* If no suffix specified, assigning "px"
*/
{
Expand Down

0 comments on commit 59c8fb7

Please sign in to comment.