fool jshint

This commit is contained in:
Régis Hanol 2013-07-09 02:14:35 +02:00
parent c1acce17cc
commit 1f263c57fd
1 changed files with 5 additions and 3 deletions

View File

@ -5,9 +5,11 @@
var oldI18nlookup = I18n.lookup; var oldI18nlookup = I18n.lookup;
I18n.lookup = function() { I18n.lookup = function() {
arguments[0] = "js." + arguments[0]; // jshint doesn't like when we change the arguments directly...
return oldI18nlookup.apply(this, arguments); 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. Look up a translation for an i18n key in our dictionary.