diff --git a/webroot/rsrc/externals/javelin/core/util.js b/webroot/rsrc/externals/javelin/core/util.js index cf29f246a5..bc0d64f0bf 100644 --- a/webroot/rsrc/externals/javelin/core/util.js +++ b/webroot/rsrc/externals/javelin/core/util.js @@ -48,15 +48,8 @@ JX.$E = function(message) { * * @group util */ -JX.$A = function(mysterious_arraylike_object) { - // NOTE: This avoids the Array.slice() trick because some bizarre COM object - // I dug up somewhere was freaking out when I tried to do it and it made me - // very upset, so do not replace this with Array.slice() cleverness. - var r = []; - for (var ii = 0; ii < mysterious_arraylike_object.length; ii++) { - r.push(mysterious_arraylike_object[ii]); - } - return r; +JX.$A = function(object) { + return Array.prototype.slice.call(object); };