Commit 316b2ab0 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1492666: Mistake with js function.apply()



The first arg needs to be 'this'

behatnotneeded

Change-Id: If9af8acdd9274a617a90d020463708373fd806f9
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 17894563
......@@ -43,7 +43,7 @@ function get_string_ajax(str, section) {
if (typeof(strings[str]) !== 'undefined') {
// need to pass all the arguments except 'str'
// 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);
......
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