Permalink
Browse files

Array.call([],arguments) --> Array.call(0, arguments)

  • Loading branch information...
1 parent 06eeebc commit 8e50222eaecb6080cb66d2cecb20b9ab520a3222 @RubyLouvre committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mass.js
View
@@ -66,7 +66,7 @@
function mix(receiver, supplier) {
- var args = Array.call([], arguments)[0],
+ var args = Array.call(0, arguments)[0],
i = 1,
key, //如果最后参数是布尔,判定是否覆写同名属性
ride = typeof args[args.length - 1] === "boolean" ? args.pop() : true;

0 comments on commit 8e50222

Please sign in to comment.