1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00

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
This commit is contained in:
epriestley 2014-05-12 14:29:58 -07:00
parent 315ac6aab7
commit 91eb751d6f
2 changed files with 9 additions and 10 deletions

View file

@ -14,7 +14,7 @@ return array(
'differential.pkg.js' => '36bec171',
'diffusion.pkg.css' => '3783278d',
'diffusion.pkg.js' => '077e3ad0',
'javelin.pkg.js' => 'dbef0389',
'javelin.pkg.js' => 'f5308946',
'maniphest.pkg.css' => 'f1887d71',
'maniphest.pkg.js' => '2fe8af22',
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
@ -169,7 +169,7 @@ return array(
'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' => '79473b62',
'rsrc/externals/javelin/core/Event.js' => '49a59508',
'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',
@ -641,7 +641,7 @@ return array(
'javelin-cookie' => '6b3dcf44',
'javelin-dom' => '07d99a3d',
'javelin-dynval' => 'f6555212',
'javelin-event' => '79473b62',
'javelin-event' => '49a59508',
'javelin-fx' => '54b612ba',
'javelin-history' => 'c60f4327',
'javelin-install' => '52a92793',
@ -1163,6 +1163,10 @@ return array(
0 => 'javelin-install',
1 => 'javelin-util',
),
'49a59508' =>
array(
0 => 'javelin-install',
),
'4a11ea9c' =>
array(
0 => 'javelin-behavior',
@ -1320,10 +1324,6 @@ return array(
4 => 'javelin-util',
5 => 'phabricator-busy',
),
'79473b62' =>
array(
0 => 'javelin-install',
),
'7a68dda3' =>
array(
0 => 'owners-path-editor',

View file

@ -142,9 +142,8 @@ JX.install('Event', {
* @task info
*/
isNormalMouseEvent : function() {
var supportedEvents = ['click', 'mouseup', 'mousedown'];
if (supportedEvents.indexOf(this.getType()) == -1) {
var supportedEvents = {'click': 1, 'mouseup': 1, 'mousedown': 1};
if (!(this.getType() in supportedEvents)) {
return false;
}