vendor/assets/javascripts/precompiled/development/array.js in sugar-rails-1.3.4 vs vendor/assets/javascripts/precompiled/development/array.js in sugar-rails-1.3.5

- old
+ new

@@ -312,16 +312,18 @@ * return arguments; * }('howdy', 'doody')); * ***/ 'create': function() { - var result = [] + var result = [], tmp; multiArgs(arguments, function(a) { if(isObjectPrimitive(a)) { - result = result.concat(array.prototype.slice.call(a)); - } else { - result.push(a); + tmp = array.prototype.slice.call(a); + if(tmp.length > 0) { + a = tmp; + } } + result = result.concat(a); }); return result; } });