diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 6c1240fea0..49a4f233f7 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -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', diff --git a/webroot/rsrc/js/application/diffusion/behavior-diffusion-browse-file.js b/webroot/rsrc/js/application/diffusion/behavior-diffusion-browse-file.js deleted file mode 100644 index 41ff0cfcc3..0000000000 --- a/webroot/rsrc/js/application/diffusion/behavior-diffusion-browse-file.js +++ /dev/null @@ -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; - } - }); -});