Remove another bad idea.
[pwl6.git] / src / yuu / yf.js
index 5df966d..ab3969b 100644 (file)
@@ -1,7 +1,7 @@
 /* Copyright 2014 Yukkuri Games
    Licensed under the terms of the GNU GPL v2 or later
-   @license http://www.gnu.org/licenses/gpl-2.0.html
-   @source: http://yukkurigames.com/yuu/
+   @license https://www.gnu.org/licenses/gpl-2.0.html
+   @source: https://yukkurigames.com/yuu/
 */
 
 (function () {
         case 1: return function () { return f.call(this, arguments); };
         default:
             return function () {
-                arguments[length - 1] = slice(arguments, length - 1);
-                return f.apply(this, arguments);
+                var args = slice(arguments, 0, length);
+                args[length - 1] = slice(arguments, length - 1);
+                return f.apply(this, args);
             };
         }
     }
             map.call(thisArg, callback, ...).
         */
         var a = [];
-        arguments[0] = compose(pusher(a), arguments[0]);
-        each.apply(this, arguments);
+        var args = slice(arguments);
+        args[0] = compose(pusher(a), args[0]);
+        each.apply(this, args);
         return a;
     }
 
             As eachr is to each, so mapr is to map.
         */
         var a = [];
-        arguments[0] = compose(pusher(a), arguments[0]);
-        eachr.apply(this, arguments);
+        var args = slice(arguments);
+        args[0] = compose(pusher(a), args[0]);
+        eachr.apply(this, args);
         return a;
     }
 
     }
 
     function every () {
-        arguments[0] = not(arguments[0] || I);
-        return !some.apply(this, arguments);
+        var args = slice(arguments);
+        args[0] = not(args[0] || I);
+        return !some.apply(this, args);
     }
 
     function none () {