From: Jo-Philipp Wich Date: Sat, 1 Feb 2014 18:06:57 +0000 (+0000) Subject: luci2: Do not produce uneeded anonymous arrays in LuCI2.cbi.TypedSection.sections() X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=commitdiff_plain;h=e6e4ea6e1b503cf38f628dbed30053e74a3d0b45 luci2: Do not produce uneeded anonymous arrays in LuCI2.cbi.TypedSection.sections() --- 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; },