Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js

Issue 571453002: Correct indentation, JSDoc, etc... to comply with closure linter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js b/ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js
index 1c29c8ba299ac547549066bdec75804b4ec65fde..99d242c27210995a6450d3ed4a3b5c852753d334 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js
@@ -5,7 +5,7 @@
'use strict';
/**
- * @extends cr.EventTarget
+ * @extends {cr.EventTarget}
* @param {HTMLDivElement} div Div container for breadcrumbs.
* @param {MetadataCache} metadataCache To retrieve metadata.
* @param {VolumeManagerWrapper} volumeManager Volume manager.
@@ -162,7 +162,7 @@ BreadcrumbsController.prototype.updateInternal_ = function(entries) {
*/
BreadcrumbsController.prototype.truncate = function() {
if (!this.bc_.firstChild)
- return;
+ return;
// Assume style.width == clientWidth (items have no margins or paddings).
@@ -188,8 +188,8 @@ BreadcrumbsController.prototype.truncate = function() {
if (pathWidth + currentWidth <= containerWidth)
return;
if (!lastSeparator) {
- this.bc_.lastChild.style.width = Math.min(currentWidth, containerWidth) +
- 'px';
+ this.bc_.lastChild.style.width =
+ Math.min(currentWidth, containerWidth) + 'px';
return;
}
var lastCrumbSeparatorWidth = lastSeparator.clientWidth;

Powered by Google App Engine
This is Rietveld 408576698