Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13977085
D9118.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
5 KB
Referenced Files
None
Subscribers
None
D9118.diff
View Options
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' => '36bec171',
'diffusion.pkg.css' => '3783278d',
'diffusion.pkg.js' => '077e3ad0',
- 'javelin.pkg.js' => 'd4d2c5ae',
+ 'javelin.pkg.js' => 'b4831ebf',
'maniphest.pkg.css' => 'f1887d71',
'maniphest.pkg.js' => '2fe8af22',
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
@@ -169,7 +169,7 @@
'rsrc/externals/font/fontawesome/fontawesome-webfont.woff' => 'c713570f',
'rsrc/externals/font/sourcesans/SourceSansPro.woff' => '3614608c',
'rsrc/externals/font/sourcesans/SourceSansProBold.woff' => 'cbf46566',
- 'rsrc/externals/javelin/core/Event.js' => '49a59508',
+ 'rsrc/externals/javelin/core/Event.js' => '69815cac',
'rsrc/externals/javelin/core/Stratcom.js' => 'c293f7b9',
'rsrc/externals/javelin/core/__tests__/event-stop-and-kill.js' => '717554e4',
'rsrc/externals/javelin/core/__tests__/install.js' => 'c432ee85',
@@ -208,7 +208,7 @@
'rsrc/externals/javelin/lib/Routable.js' => 'b3e7d692',
'rsrc/externals/javelin/lib/Router.js' => '29274e2b',
'rsrc/externals/javelin/lib/URI.js' => 'd9a9b862',
- 'rsrc/externals/javelin/lib/Vector.js' => '039fb90d',
+ 'rsrc/externals/javelin/lib/Vector.js' => 'bd0aedcd',
'rsrc/externals/javelin/lib/Workflow.js' => '09b15cf1',
'rsrc/externals/javelin/lib/__tests__/Cookie.js' => '5ed109e8',
'rsrc/externals/javelin/lib/__tests__/DOM.js' => 'c984504b',
@@ -645,7 +645,7 @@
'javelin-diffusion-locate-file-source' => '5afdb2f8',
'javelin-dom' => '07d99a3d',
'javelin-dynval' => 'f6555212',
- 'javelin-event' => '49a59508',
+ 'javelin-event' => '69815cac',
'javelin-fx' => '54b612ba',
'javelin-history' => 'c60f4327',
'javelin-install' => '52a92793',
@@ -671,7 +671,7 @@
'javelin-typeahead-static-source' => 'cdde23f1',
'javelin-uri' => 'd9a9b862',
'javelin-util' => '65b0b249',
- 'javelin-vector' => '039fb90d',
+ 'javelin-vector' => 'bd0aedcd',
'javelin-view' => '0f764c35',
'javelin-view-html' => 'e5b406f9',
'javelin-view-interpreter' => '0c33c1a0',
@@ -846,11 +846,6 @@
8 => 'javelin-stratcom',
9 => 'javelin-util',
),
- '039fb90d' =>
- array(
- 0 => 'javelin-install',
- 1 => 'javelin-event',
- ),
'03d6ed07' =>
array(
0 => 'javelin-behavior',
@@ -1167,10 +1162,6 @@
0 => 'javelin-install',
1 => 'javelin-util',
),
- '49a59508' =>
- array(
- 0 => 'javelin-install',
- ),
'4a11ea9c' =>
array(
0 => 'javelin-behavior',
@@ -1275,18 +1266,6 @@
2 => 'javelin-util',
3 => 'phabricator-shaped-request',
),
- '7319e029' =>
- array(
- 0 => 'javelin-behavior',
- 1 => 'javelin-dom',
- ),
- '62e18640' =>
- array(
- 0 => 'javelin-install',
- 1 => 'javelin-util',
- 2 => 'javelin-dom',
- 3 => 'javelin-typeahead-normalizer',
- ),
'6453c869' =>
array(
0 => 'javelin-install',
@@ -1306,6 +1285,10 @@
2 => 'javelin-request',
3 => 'javelin-typeahead-source',
),
+ '69815cac' =>
+ array(
+ 0 => 'javelin-install',
+ ),
'6b3dcf44' =>
array(
0 => 'javelin-install',
@@ -1330,6 +1313,18 @@
1 => 'javelin-stratcom',
2 => 'javelin-dom',
),
+ '7319e029' =>
+ array(
+ 0 => 'javelin-behavior',
+ 1 => 'javelin-dom',
+ ),
+ '62e18640' =>
+ array(
+ 0 => 'javelin-install',
+ 1 => 'javelin-util',
+ 2 => 'javelin-dom',
+ 3 => 'javelin-typeahead-normalizer',
+ ),
'76f4ebed' =>
array(
0 => 'javelin-install',
@@ -1702,6 +1697,11 @@
5 => 'phuix-action-view',
6 => 'javelin-workflow',
),
+ 'bd0aedcd' =>
+ array(
+ 0 => 'javelin-install',
+ 1 => 'javelin-event',
+ ),
'bd4c8dca' =>
array(
0 => 'javelin-install',
diff --git a/webroot/rsrc/externals/javelin/core/Event.js b/webroot/rsrc/externals/javelin/core/Event.js
--- a/webroot/rsrc/externals/javelin/core/Event.js
+++ b/webroot/rsrc/externals/javelin/core/Event.js
@@ -158,7 +158,12 @@
}
if (('button' in r) && r.button) {
- return false;
+ if ('which' in r) {
+ return false;
+ // IE won't have which and has left click == 1 here
+ } else if (r.button != 1) {
+ return false;
+ }
}
return true;
diff --git a/webroot/rsrc/externals/javelin/lib/Vector.js b/webroot/rsrc/externals/javelin/lib/Vector.js
--- a/webroot/rsrc/externals/javelin/lib/Vector.js
+++ b/webroot/rsrc/externals/javelin/lib/Vector.js
@@ -224,7 +224,12 @@
JX.Event && (node instanceof JX.Event) && (node = node.getRawEvent());
if (node.getBoundingClientRect) {
- var rect = node.getBoundingClientRect();
+ var rect;
+ try {
+ rect = node.getBoundingClientRect();
+ } catch (e) {
+ rect = { top : 0, left : 0 };
+ }
return new JX.Vector(
rect.left + window.pageXOffset,
rect.top + window.pageYOffset);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 19, 5:00 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6710162
Default Alt Text
D9118.diff (5 KB)
Attached To
Mode
D9118: Internet Explorer compatibility fixes
Attached
Detach File
Event Timeline
Log In to Comment