From e6e4ea6e1b503cf38f628dbed30053e74a3d0b45 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 1 Feb 2014 18:06:57 +0000 Subject: [PATCH] luci2: Do not produce uneeded anonymous arrays in LuCI2.cbi.TypedSection.sections() --- luci2/htdocs/luci2/luci2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js index 7a6e6a5..887aec8 100644 --- a/luci2/htdocs/luci2/luci2.js +++ b/luci2/htdocs/luci2/luci2.js @@ -6330,7 +6330,7 @@ function LuCI2() if (typeof(cb) == 'function') for (var i = 0; i < s2.length; i++) - cb.apply(this, [ s2[i] ]); + cb.call(this, s2[i]); return s2; }, -- 2.30.2