mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Remove obsoleted "diffusion-browse-file" behavior for coverage
Summary: Ref T13105. After moving Diffusion to DocumnentEngine, this no longer has callers. It will become part of the document behavior. Test Plan: Grepped for calls to the `diffusion-browse-file` behavior, found none. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13105 Differential Revision: https://secure.phabricator.com/D19377
This commit is contained in:
parent
f9b3673fbb
commit
21bb0215db
2 changed files with 0 additions and 55 deletions
|
@ -384,7 +384,6 @@ return array(
|
|||
'rsrc/js/application/diffusion/behavior-audit-preview.js' => 'd835b03a',
|
||||
'rsrc/js/application/diffusion/behavior-commit-branches.js' => 'bdaf4d04',
|
||||
'rsrc/js/application/diffusion/behavior-commit-graph.js' => '75b83cbb',
|
||||
'rsrc/js/application/diffusion/behavior-diffusion-browse-file.js' => '054a0f0b',
|
||||
'rsrc/js/application/diffusion/behavior-locate-file.js' => '6d3e1947',
|
||||
'rsrc/js/application/diffusion/behavior-pull-lastmodified.js' => 'f01586dc',
|
||||
'rsrc/js/application/doorkeeper/behavior-doorkeeper-tag.js' => '1db13e70',
|
||||
|
@ -597,7 +596,6 @@ return array(
|
|||
'javelin-behavior-differential-feedback-preview' => '51c5ad07',
|
||||
'javelin-behavior-differential-populate' => '419998ab',
|
||||
'javelin-behavior-differential-user-select' => 'a8d8459d',
|
||||
'javelin-behavior-diffusion-browse-file' => '054a0f0b',
|
||||
'javelin-behavior-diffusion-commit-branches' => 'bdaf4d04',
|
||||
'javelin-behavior-diffusion-commit-graph' => '75b83cbb',
|
||||
'javelin-behavior-diffusion-locate-file' => '6d3e1947',
|
||||
|
@ -932,12 +930,6 @@ return array(
|
|||
'javelin-util',
|
||||
'javelin-magical-init',
|
||||
),
|
||||
'054a0f0b' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'phabricator-tooltip',
|
||||
),
|
||||
'065227cc' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* @provides javelin-behavior-diffusion-browse-file
|
||||
* @requires javelin-behavior
|
||||
* javelin-dom
|
||||
* javelin-util
|
||||
* phabricator-tooltip
|
||||
*/
|
||||
|
||||
JX.behavior('diffusion-browse-file', function(config, statics) {
|
||||
if (statics.installed) {
|
||||
return;
|
||||
}
|
||||
statics.installed = true;
|
||||
|
||||
var map = config.labels;
|
||||
|
||||
JX.Stratcom.listen(
|
||||
['mouseover', 'mouseout'],
|
||||
['phabricator-source', 'tag:td'],
|
||||
function(e) {
|
||||
var target = e.getTarget();
|
||||
|
||||
// NOTE: We're using raw classnames instead of sigils and metadata here
|
||||
// because these elements are unusual: there are a lot of them on the
|
||||
// page, and rendering all the extra metadata to do this in a normal way
|
||||
// would be needlessly expensive. This is an unusual case.
|
||||
|
||||
if (!target.className.match(/cov-/)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.getType() == 'mouseout') {
|
||||
JX.Tooltip.hide();
|
||||
return;
|
||||
}
|
||||
|
||||
for (var k in map) {
|
||||
if (!target.className.match(k)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var label = map[k];
|
||||
JX.Tooltip.show(target, 300, 'E', label);
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue