浏览代码

small fix in ___do.js

Simon Van Mierlo 9 年之前
父节点
当前提交
7ee80fec8e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ___do.js

+ 1 - 1
___do.js

@@ -52,7 +52,7 @@ exports.parallel = function parallel(actions) {
 // input of the second and the final output to the callback
 exports.chain = function chain(actions) {
   if (!(Object.prototype.toString.call(actions) === '[object Array]')) {
-    actions = Array.prototype.slice.call(arguments);
+    actions = Array.prototype.slice.call(actions);
   }
   return function(callback, errback) {
     var pos = 0;