Page MenuHomePhabricator

D8728.diff
No OneTemporary

D8728.diff

diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -14,7 +14,7 @@
'differential.pkg.js' => '11a5b750',
'diffusion.pkg.css' => '3783278d',
'diffusion.pkg.js' => '5b4010f4',
- 'javelin.pkg.js' => 'ec6c9ac3',
+ 'javelin.pkg.js' => 'a10417f3',
'maniphest.pkg.css' => 'f1887d71',
'maniphest.pkg.js' => '2fe8af22',
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
@@ -178,7 +178,7 @@
'rsrc/externals/javelin/core/init.js' => 'b88ab49e',
'rsrc/externals/javelin/core/init_node.js' => 'd7dde471',
'rsrc/externals/javelin/core/install.js' => '52a92793',
- 'rsrc/externals/javelin/core/util.js' => 'e1d96281',
+ 'rsrc/externals/javelin/core/util.js' => '65b0b249',
'rsrc/externals/javelin/docs/Base.js' => '897bb199',
'rsrc/externals/javelin/docs/onload.js' => '81fb4862',
'rsrc/externals/javelin/ext/fx/Color.js' => '7e41274a',
@@ -655,7 +655,7 @@
'javelin-typeahead-source' => '62e18640',
'javelin-typeahead-static-source' => 'cdde23f1',
'javelin-uri' => 'd9a9b862',
- 'javelin-util' => 'e1d96281',
+ 'javelin-util' => '65b0b249',
'javelin-vector' => '403a3dce',
'javelin-view' => '0f764c35',
'javelin-view-html' => 'e5b406f9',
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
@@ -49,7 +49,13 @@
* @group util
*/
JX.$A = function(object) {
- return Array.prototype.slice.call(object);
+ // IE8 throws "JScript object expected" when trying to call
+ // Array.prototype.slice on a NodeList, so just copy items one by one here.
+ var r = [];
+ for (var ii = 0; ii < object.length; ii++) {
+ r.push(object[ii]);
+ }
+ return r;
};

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 16, 10:07 PM (21 h, 9 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6997509
Default Alt Text
D8728.diff (1 KB)

Event Timeline