@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use `k in map`, not `array.indexOf`, in Event.js

Summary: See T5023.

Test Plan: Dragged stuff.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5023

Differential Revision: https://secure.phabricator.com/D9082

+9 -10
+7 -7
resources/celerity/map.php
··· 14 14 'differential.pkg.js' => '36bec171', 15 15 'diffusion.pkg.css' => '3783278d', 16 16 'diffusion.pkg.js' => '077e3ad0', 17 - 'javelin.pkg.js' => 'dbef0389', 17 + 'javelin.pkg.js' => 'f5308946', 18 18 'maniphest.pkg.css' => 'f1887d71', 19 19 'maniphest.pkg.js' => '2fe8af22', 20 20 'rsrc/css/aphront/aphront-bars.css' => '231ac33c', ··· 169 169 'rsrc/externals/font/fontawesome/fontawesome-webfont.woff' => 'c713570f', 170 170 'rsrc/externals/font/sourcesans/SourceSansPro.woff' => '3614608c', 171 171 'rsrc/externals/font/sourcesans/SourceSansProBold.woff' => 'cbf46566', 172 - 'rsrc/externals/javelin/core/Event.js' => '79473b62', 172 + 'rsrc/externals/javelin/core/Event.js' => '49a59508', 173 173 'rsrc/externals/javelin/core/Stratcom.js' => 'c293f7b9', 174 174 'rsrc/externals/javelin/core/__tests__/event-stop-and-kill.js' => '717554e4', 175 175 'rsrc/externals/javelin/core/__tests__/install.js' => 'c432ee85', ··· 641 641 'javelin-cookie' => '6b3dcf44', 642 642 'javelin-dom' => '07d99a3d', 643 643 'javelin-dynval' => 'f6555212', 644 - 'javelin-event' => '79473b62', 644 + 'javelin-event' => '49a59508', 645 645 'javelin-fx' => '54b612ba', 646 646 'javelin-history' => 'c60f4327', 647 647 'javelin-install' => '52a92793', ··· 1163 1163 0 => 'javelin-install', 1164 1164 1 => 'javelin-util', 1165 1165 ), 1166 + '49a59508' => 1167 + array( 1168 + 0 => 'javelin-install', 1169 + ), 1166 1170 '4a11ea9c' => 1167 1171 array( 1168 1172 0 => 'javelin-behavior', ··· 1319 1323 3 => 'javelin-router', 1320 1324 4 => 'javelin-util', 1321 1325 5 => 'phabricator-busy', 1322 - ), 1323 - '79473b62' => 1324 - array( 1325 - 0 => 'javelin-install', 1326 1326 ), 1327 1327 '7a68dda3' => 1328 1328 array(
+2 -3
webroot/rsrc/externals/javelin/core/Event.js
··· 142 142 * @task info 143 143 */ 144 144 isNormalMouseEvent : function() { 145 - var supportedEvents = ['click', 'mouseup', 'mousedown']; 146 - 147 - if (supportedEvents.indexOf(this.getType()) == -1) { 145 + var supportedEvents = {'click': 1, 'mouseup': 1, 'mousedown': 1}; 146 + if (!(this.getType() in supportedEvents)) { 148 147 return false; 149 148 } 150 149