Commit 50910d50 authored by Mark Florian's avatar Mark Florian

Remove unnecessary bind call

This was creating, calling and throwing away a brand new bound function
on every single call to `gettext`. This is wasteful, as the original
function can be called directly in such a way that `this` is bound
correctly.
parent e9ed0284
......@@ -11,7 +11,7 @@ delete window.translations;
@param text The text to be translated
@returns {String} The translated text
*/
const gettext = text => locale.gettext.bind(locale)(ensureSingleLine(text));
const gettext = text => locale.gettext(ensureSingleLine(text));
/**
Translate the text with a number
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment