Page MenuHomePhabricator

D8728.id20696.diff
No OneTemporary

D8728.id20696.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' => '76072f11',
'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' => 'e304c123',
'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' => 'e304c123',
'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,17 @@
* @group util
*/
JX.$A = function(object) {
- return Array.prototype.slice.call(object);
+ if (object.hasOwnProperty) {
+ return Array.prototype.slice.call(object);
+ } else {
+ // IE8 throws "JScript object expected" when trying to call
+ // Array.prototype.slice on a NodeList
+ var r = [];
+ for (var ii = 0; ii < r.length; i++) {
+ r.push(object[ii]);
+ }
+ return r;
+ }
};

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 16, 1:22 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704919
Default Alt Text
D8728.id20696.diff (1 KB)

Event Timeline