|
|
@ -25,6 +25,7 @@ class Toaster { |
|
|
|
} |
|
|
|
} |
|
|
|
render (tooltipText, actionElement, opts) { |
|
|
|
render (tooltipText, actionElement, opts) { |
|
|
|
opts = defaultOptions(opts) |
|
|
|
opts = defaultOptions(opts) |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
<<<<<<< HEAD |
|
|
|
<<<<<<< HEAD |
|
|
|
let canShorten = true |
|
|
|
let canShorten = true |
|
|
|
if (tooltipText instanceof Element) { |
|
|
|
if (tooltipText instanceof Element) { |
|
|
@ -42,6 +43,8 @@ class Toaster { |
|
|
|
if (typeof (tooltipText) === 'object' && tooltipText.message !== undefined) { |
|
|
|
if (typeof (tooltipText) === 'object' && tooltipText.message !== undefined) { |
|
|
|
tooltipText = tooltipText.message |
|
|
|
tooltipText = tooltipText.message |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
======= |
|
|
|
|
|
|
|
>>>>>>> 9211c21f... removed double implementation |
|
|
|
|
|
|
|
|
|
|
|
if (typeof tooltipText === 'object') { |
|
|
|
if (typeof tooltipText === 'object') { |
|
|
|
if (tooltipText.message) { |
|
|
|
if (tooltipText.message) { |
|
|
|