Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18847755
D835.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
758 B
Referenced Files
None
Subscribers
None
D835.id.diff
View Options
diff --git a/webroot/rsrc/externals/javelin/core/util.js b/webroot/rsrc/externals/javelin/core/util.js
--- a/webroot/rsrc/externals/javelin/core/util.js
+++ b/webroot/rsrc/externals/javelin/core/util.js
@@ -48,15 +48,8 @@
*
* @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);
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 31, 1:58 AM (1 w, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8636994
Default Alt Text
D835.id.diff (758 B)
Attached To
Mode
D835: Use Array.prototype.slice in JX.$A
Attached
Detach File
Event Timeline
Log In to Comment