luci2: Do not produce uneeded anonymous arrays in LuCI2.cbi.TypedSection.sections()
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 1 Feb 2014 18:06:57 +0000 (18:06 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 1 Feb 2014 18:06:57 +0000 (18:06 +0000)
luci2/htdocs/luci2/luci2.js

index 7a6e6a5..887aec8 100644 (file)
@@ -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;
                },