diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index 90b53594..31fcc9cc 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -75,12 +75,10 @@ Ox.range Python-style range [-1, -1.5] @*/ Ox.range = function() { - var args = Ox.makeArray(arguments), - arr = []; - args.push(function(i) { + var arr = []; + Ox.loop.apply(null, Ox.merge(Ox.makeArray(arguments), function(i) { arr.push(i); - }); - Ox.loop.apply(null, args); + })); return arr; };