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 7a6e6a551b5ce5275828a96f5d7e2c3afcce1cfb..887aec8ed6fa6152bd732506d223c66f4c42a8b0 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;
                },