fabi1cazenave / webL10n

Client-side internationalization / localization library
http://fabi1cazenave.github.com/webL10n/
278 stars 70 forks source link

did you mean "type"? #37

Closed DavidBruant closed 9 years ago

DavidBruant commented 11 years ago

I think there is a bug at the line 1144 if (e.propertyName === 'localized') might need to be replaced with if (e.type === 'localized')

Credit goes to TypeScript

Rob--W commented 11 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