Start index for var-args needs to be 2, not 0. I only got lucky that it worked anyway.

This commit is contained in:
Paul Baumgart committed 2010-09-29 15:19:20 -07:00
1 parent e62fd3cf40
commit 2cc6c54fbf
1 file changed
+1 -1
@@ -23,7 +23,7 @@
{
var product;
for (var i = 0, ii = arguments.length; i < ii; ++i)
for (var i = 2, ii = arguments.length; i < ii; ++i)
product = product ? product * arguments[i] : arguments[i];
return product;