mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
fool jshint
This commit is contained in:
parent
c1acce17cc
commit
1f263c57fd
@ -5,9 +5,11 @@
|
||||
|
||||
var oldI18nlookup = I18n.lookup;
|
||||
I18n.lookup = function() {
|
||||
arguments[0] = "js." + arguments[0];
|
||||
return oldI18nlookup.apply(this, arguments);
|
||||
}
|
||||
// jshint doesn't like when we change the arguments directly...
|
||||
var args = arguments;
|
||||
if (args.length > 0) { args[0] = "js." + args[0]; }
|
||||
return oldI18nlookup.apply(this, args);
|
||||
};
|
||||
|
||||
/**
|
||||
Look up a translation for an i18n key in our dictionary.
|
||||
|
Loading…
Reference in New Issue
Block a user