chore: cleanup references
This commit is contained in:
parent
0e77624b02
commit
25e7b6d17b
6 changed files with 8 additions and 11 deletions
|
|
@ -24,7 +24,6 @@ class FormRegistrarManager {
|
|||
}
|
||||
|
||||
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
||||
// issue: https://gitlab.ing.net/TheGuideComponents/lion-element/issues/12
|
||||
_fakeExtendsEventTarget() {
|
||||
const delegate = document.createDocumentFragment();
|
||||
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
||||
|
|
|
|||
|
|
@ -18,18 +18,18 @@ storiesOf('Forms|Input Email', module)
|
|||
`,
|
||||
)
|
||||
.add('Use own validator', () => {
|
||||
const ingOnly = modelValue => ({ ingOnly: modelValue.indexOf('ing.com') !== -1 });
|
||||
const gmailOnly = modelValue => ({ gmailOnly: modelValue.indexOf('gmail.com') !== -1 });
|
||||
localize.locale = 'en';
|
||||
|
||||
try {
|
||||
localize.addData('en', 'lion-validate+ingOnly', {
|
||||
localize.addData('en', 'lion-validate+gmailOnly', {
|
||||
error: {
|
||||
ingOnly: 'You can only use ing.com email addresses.',
|
||||
gmailOnly: 'You can only use gmail.com email addresses.',
|
||||
},
|
||||
});
|
||||
localize.addData('nl', 'lion-validate+ingOnly', {
|
||||
localize.addData('nl', 'lion-validate+gmailOnly', {
|
||||
error: {
|
||||
ingOnly: 'Je mag hier alleen ing.com e-mailadressen gebruiken.',
|
||||
gmailOnly: 'Je mag hier alleen gmail.com e-mailadressen gebruiken.',
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
|
|
@ -39,7 +39,7 @@ storiesOf('Forms|Input Email', module)
|
|||
return html`
|
||||
<lion-input-email
|
||||
.modelValue=${'foo@bar.com'}
|
||||
.errorValidators=${[[ingOnly]]}
|
||||
.errorValidators=${[[gmailOnly]]}
|
||||
></lion-input-email>
|
||||
`;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -214,7 +214,6 @@ export class LocalizeManager extends LionSingleton {
|
|||
}
|
||||
|
||||
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
||||
// issue: https://gitlab.ing.net/TheGuideComponents/lion-element/issues/12
|
||||
_fakeExtendsEventTarget() {
|
||||
const delegate = document.createDocumentFragment();
|
||||
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
||||
|
|
|
|||
|
|
@ -313,7 +313,6 @@ export class LocalOverlayController {
|
|||
}
|
||||
|
||||
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
||||
// issue: https://gitlab.ing.net/TheGuideComponents/lion-element/issues/12
|
||||
__fakeExtendsEventTarget() {
|
||||
const delegate = document.createDocumentFragment();
|
||||
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import '@lion/popup/lion-popup.js';
|
|||
```html
|
||||
<lion-popup>
|
||||
<div slot="content" class="tooltip">This is a popup<div>
|
||||
<a slot="invoker" href="https://www.ing.com/Newsroom/All-news/Uslion-AI-to-assess-credit-risk.htm">
|
||||
<a slot="invoker" href="https://www.google.com/">
|
||||
Popup on link
|
||||
</a>
|
||||
</lion-popup>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import '@lion/tooltip/lion-tooltip.js';
|
|||
```html
|
||||
<lion-tooltip>
|
||||
<div slot="content" class="tooltip">This is a popup<div>
|
||||
<a slot="invoker" href="https://www.ing.com/Newsroom/All-news/Uslion-AI-to-assess-credit-risk.htm">
|
||||
<a slot="invoker" href="https://www.google.com/">
|
||||
Popup on link
|
||||
</a>
|
||||
</lion-tooltip>
|
||||
|
|
|
|||
Loading…
Reference in a new issue