Closed DavidBruant closed 9 years ago
The current code is correct. These lines of code target IE8-. The only way to fire a custom event in IE8- is to set a custom attribute on an element, whose name is available as "propertyName". This "event" is triggered at https://github.com/fabi1cazenave/webL10n/blob/b18c753c6fe81e733d86660d421ace7a7880e90f/l10n.js#L1087-L1094
I think there is a bug at the line 1144
if (e.propertyName === 'localized')
might need to be replaced withif (e.type === 'localized')
Credit goes to TypeScript