Commit bf20d686 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Bug 1492666: Mistake with js function.apply()"

parents 25350dd7 316b2ab0
...@@ -43,7 +43,7 @@ function get_string_ajax(str, section) { ...@@ -43,7 +43,7 @@ function get_string_ajax(str, section) {
if (typeof(strings[str]) !== 'undefined') { if (typeof(strings[str]) !== 'undefined') {
// need to pass all the arguments except 'str' // need to pass all the arguments except 'str'
// in case there are other %s variables // in case there are other %s variables
return get_string.apply(str, [].slice.call(arguments, 2)); return get_string.apply(this, arguments);
} }
var rnd = randString(10); var rnd = randString(10);
......
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