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

Unified Diff: ui/webui/resources/js/cr/ui/tabs.js

Issue 2597013002: Run clang-format on ui/webui/resources (Closed)
Patch Set: remove cr_shared_menu.js Created 4 years 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/webui/resources/js/cr/ui/tabs.js
diff --git a/ui/webui/resources/js/cr/ui/tabs.js b/ui/webui/resources/js/cr/ui/tabs.js
index d3256d8f345ac8035511232ad77f0a3e3652d1c4..e3a264954e5186205860a901870d3237f092264b 100644
--- a/ui/webui/resources/js/cr/ui/tabs.js
+++ b/ui/webui/resources/js/cr/ui/tabs.js
@@ -10,9 +10,8 @@ cr.define('cr.ui', function() {
* @return {TabBox} The tab box if found.
*/
function getTabBox(el) {
- return findAncestor(el, function(node) {
- return node.tagName == 'TABBOX';
- });
+ return findAncestor(
+ el, function(node) { return node.tagName == 'TABBOX'; });
}
/**
@@ -105,8 +104,8 @@ cr.define('cr.ui', function() {
handleSelectedChange_: function(e) {
var target = e.target;
if (e.newValue && isTabElement(target) && getTabBox(target) == this) {
- var index = Array.prototype.indexOf.call(target.parentElement.children,
- target);
+ var index =
+ Array.prototype.indexOf.call(target.parentElement.children, target);
this.selectedIndex = index;
}
},
@@ -118,8 +117,8 @@ cr.define('cr.ui', function() {
* The index of the selected tab or -1 if no tab is selected.
* @type {number}
*/
- cr.defineProperty(TabBox, 'selectedIndex', cr.PropertyKind.JS_PROP,
- selectedIndexSetHook);
+ cr.defineProperty(
+ TabBox, 'selectedIndex', cr.PropertyKind.JS_PROP, selectedIndexSetHook);
/**
* Creates a new tabs element.

Powered by Google App Engine
This is Rietveld 408576698